Sponsored Content
Top Forums Shell Programming and Scripting Display a Graphic from a Unix program on a Pc – how? Post 302169244 by Barry Staples on Wednesday 20th of February 2008 03:36:39 PM
Old 02-20-2008
Display a Graphic from a Unix program on a Pc – how?

An interesting puzzle. I run character based compiled C-Programs in a Unix environment on PCs in a Window. I want to be able to call up and display in a separate window a picture of a product called by a Unix shell script from within my Unix program.

Ideally I would like to have a script that can call up a jpeg image held in a windows file and display it in a separate window from that of the Unix Program.

I can write elementary scripts but nothing fancy. The programing language that I use can call up a Unix script and pass parameters to it.

Can this be done and how?? Any ideas??

Thanks Barry Staples
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Graphic apps

We have app. 20.000 UNIX boxes running mainly Solaris 2.4. Among other things we produce product documentation and have previously used Island Draw to produce images and such. Where do I find objective reviews of similar software packages, have any1 of you done any evaluation? I´ve searched this... (4 Replies)
Discussion started by: FredrikB
4 Replies

2. UNIX for Advanced & Expert Users

Display program running on CDE via GNOME

Hi All, I have one AIX box (5.1 with CDE running) and one Linux box ( FC3 with GNOME on it). What I want to be able to do is : SSH from the Linux box into the AIX box and then open an X term to launch a X window application. I am not able to do that. My guess is that the window mangers and... (4 Replies)
Discussion started by: navinxavier
4 Replies

3. UNIX Desktop Questions & Answers

Graphic display resolution

Hello all, I need to fix some resolution in an AIX, how can I do it? It cannot be altered at system reboot, in the other words, I'm setting an display resolution, but when I do a reboot this configuration will be losted. I need somethig like this: Set a configuration and it cannot be changed... (0 Replies)
Discussion started by: nando_zambone
0 Replies

4. Programming

program or script to display user info

I'm on a Linux machine and need a program that will display user information as follows: user name, user directory and current date & time. I think we can compile C, C++ and Perl. All help is appreciated. (4 Replies)
Discussion started by: flasun
4 Replies

5. Shell Programming and Scripting

Display output bash program

Hello, i have a problem with the output from my bash program. I made this program #!/bin/bash BESTANDEN=$* # Plaatst bestanden in de variabele BESTANDEN TMPFILE=xmlprog.sh.$$.$RANDOM # basisnaam voor tijdelijke bestanden # controller of het programma correct is aangeroepen if then ... (6 Replies)
Discussion started by: dutchspiders
6 Replies

6. UNIX for Dummies Questions & Answers

write a program in c in unix that display the files(includ sub-direc and files within) in a sorted

the sorting is based on name of file, file size modification time stamps o f file it should dislay the output in the following format "." and ".." enteries should be ignored please give some idea how to do it (1 Reply)
Discussion started by: pappu kumar jha
1 Replies

7. Programming

To display unique lines in a Program

I am new to C programming. I have been trying to display unique lines in a file from past two days. The problem is here, I have a file whose contents are, ras.beamtele.net ras.beamtele.net ras.beamtele.net ras.beamtele.net ras.beamtele.net ras.beamtele.net ras.beamtele.net... (1 Reply)
Discussion started by: Teju88
1 Replies

8. Shell Programming and Scripting

Output Display in a perl program

Hi All, I have created a sample perl program in one of the unix environment as below #!/usr/bin/perl print "Content-type: text/html\n\n"; print "<H1>Hello World</H1>"; When I execute it in unix, I get the below Content-type: text/html <H1>Hello World</H1> However, when I... (1 Reply)
Discussion started by: mr_manii
1 Replies

9. Programming

C program to display a busy symbol while processing

Hi I was wondering how can a c program will be implemented which will display a symbol while calculating something. for example : program should display some charters like /\/\ while calculating. At least provide some pointers thanks (4 Replies)
Discussion started by: rakeshkumar
4 Replies

10. Shell Programming and Scripting

How to display a message if program hangs(takes too long)

I have a ksh script (script1) that calls another ksh script (script2). If script2.ksh hangs or takes too long to execute I want script1.ksh to kill the call to script2.ksh and instead just display "Script2 can't run right now". Could someone help me with coding this? (1 Reply)
Discussion started by: mrskittles99
1 Replies
XStoreName(3X11)														  XStoreName(3X11)

Name
       XStoreName, XFetchName - set or get window names

Syntax
       XStoreName(display, w, window_name)
	     Display *display;
	     Window w;
	     char *window_name;

       Status XFetchName(display, w, window_name_return)
	     Display *display;
	     Window w;
	     char **window_name_return;

Arguments
       display	 Specifies the connection to the X server.

       w	 Specifies the window.

       window_name
		 Specifies the window name, which should be a null-terminated string.

       window_name_return
		 Returns a pointer to the window name, which is a null-terminated string.

Description
       The  function  assigns the name passed to window_name to the specified window.  A window manager can display the window name in some promi-
       nent place, such as the title bar, to allow users to identify windows easily.  Some window managers may display a window's name in the win-
       dow's icon, although they are encouraged to use the window's icon name if one is provided by the application.

       can generate and errors.

       The function returns the name of the specified window.  If it succeeds, it returns nonzero; otherwise, if no name has been set for the win-
       dow, it returns zero.  If the WM_NAME property has not been set for this window, sets window_name_return to NULL.  When finished with it, a
       client must free the window name string using

       can generate a error.

Property
       WM_NAME

Diagnostics
       The server failed to allocate the requested resource or server memory.

       A value for a Window argument does not name a defined Window.

See Also
       XSetCommand(3X11),  XSetIconName(3X11),	XSetIconSizeHints(3X11), XSetNormalHints(3X11), XSetSizeHints(3X11), XSetStandardProperties(3X11),
       XSetWMHints(3X11), XSetZoomHints(3X11)
       Guide to the Xlib Library

																  XStoreName(3X11)
All times are GMT -4. The time now is 06:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy