1833838 Members
2243 Online
110063 Solutions
New Discussion

Re: alert window

 
SOLVED
Go to solution
Ionut Grigorescu_2
Super Advisor

alert window

Hi all,

can you tell me how can I start a pop-up window after login in a HPUX11.00 machine , with an OK button in order to tell the user not to stop a program, or to remind me that I have to do something? It seems that nobody reads the messages echoed from .profile...
If it weren't for STRESS I'd have no energy at all
7 REPLIES 7
Dietmar Konermann
Honored Contributor
Solution

Re: alert window

Have a look at xdialog(1). It disappeared from the Standard HP-UX distribution beginning with 11.00, but you may copy it from a 10.20 box (/usr/bin/X11/xdialog).

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Stefan Farrelly
Honored Contributor

Re: alert window


Yes, xdialog is the program to use. We use it a lot, eg. for backup alerts. Heres an example with an OK button;

/usr/local/bin/xdialog -bg red -fg black -title "**************BACKUP FAILED*************" -m " BACKUP FAILED on $HOSTNAME "
Im from Palmerston North, New Zealand, but somehow ended up in London...
Niraj Kumar Verma
Trusted Contributor

Re: alert window

hi,

try this

xdialog --title "" --check "Don\'t display again" --no-cancel --stdout --textbox "text file path" 0 0


-Niraj
Niraj.Verma@philips.com
Alex Glennie
Honored Contributor

Re: alert window

A very simuilar utility = xmessage or you can get xdialog from http://hpux.cs.utah.edu/hppd/hpux/Gtk/Xdialog-2.0.3/

If you want a copy of xmessage drop me an email or post yours ...

Another way would be to use dtksh (1)also see /usr/dt/share/examples/dtksh
T G Manikandan
Honored Contributor

Re: alert window

xdialog is not available from 10.20.
On hpux 11.0 you have the dtksh .
Check the man pages of dtksh.


Thanks
Alex Glennie
Honored Contributor

Re: alert window

I can't seem to be able to send you an email ? can you send me a blank one .... alex_glennie@hp.com if you want the xmessage binary .....
Dietmar Konermann
Honored Contributor

Re: alert window

Correct, just found that there is a difference between s700/10.20 and s800/10.20.

from a 10.20 s700:
# swlist -l file |grep xdialog
InstantIgnite.PROD-TOOLS: /usr/bin/X11/xdialog
InstantIgnite.PROD-TOOLS: /usr/share/man/man1.Z/xdialog.1

from a 10.20 s800:
# swlist -l file |grep xdialog

UPSMGRCLIENT.UPSMGRCLIENT: /opt/upsmgr/client/bin/xdialog
UPSMGRMGMT.UPSMGRMGMT: /opt/upsmgr/manager/bin/xdialog


So it's also bundled with the UPS Manager. :-)

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)