Operating System - HP-UX
1839319 Members
2667 Online
110138 Solutions
New Discussion

How to script a window message in HPUX

 
SOLVED
Go to solution
Henry Chua
Super Advisor

How to script a window message in HPUX

Hi guys,

Hi guys is there anyway I can script a pop up window message in HPUX 10.20b?

Thanks!!
Henry
4 REPLIES 4
Amit Agarwal_1
Trusted Contributor

Re: How to script a window message in HPUX

I don't think you can have a script for that. But you can write a C program using xcurses library for this. This might not be easy and straightforward, so use some help file.
Pete Randall
Outstanding Contributor
Solution

Re: How to script a window message in HPUX

Henry,

You can use the xterm command. Something like this:

xterm -ls -display $DISPLAY -e ${yourmessage}


Pete

Pete
Robin T. Slotten
Trusted Contributor

Re: How to script a window message in HPUX

You could use Xdialog. It used to be standard on the old 9.x systems, youhave to install it on the newer systems. It installs with a sample directory which makes it easier to get started.

http://hpux.cs.utah.edu/hppd/hpux/Gtk/Misc/Xdialog-2.0.3/

Rob...
IF you do it more than twice, write a script.
Stefan Schulz
Honored Contributor

Re: How to script a window message in HPUX

Hi Henry,

i have downloaded and installed Xdialog from the HP-UX porting center (http://hpux.asknet.de).

Works pretty well and is easily included in your own scripts.

E.g. i send a message to all Clients in a loop:

#
foreach host ( $WS )
/usr/bin/X11/xdialog -display ${host}:0.0 -fg white -bg red -T 'A C H T U N G'
-m "$Nachricht" &
end
#

Hope this helps

Regards Stefan
No Mouse found. System halted. Press Mousebutton to continue.