Operating System - HP-UX
1836546 Members
2465 Online
110102 Solutions
New Discussion

How can I call a popup window from a shell script?

 
Parvin Hosseini_1
Occasional Contributor

How can I call a popup window from a shell script?

what is the easiest way to call a popup window from a shell script?
4 REPLIES 4
harry d brown jr
Honored Contributor

Re: How can I call a popup window from a shell script?

Another login, if your display device can handle X, is

//xterm -sl 2000 -ls -sb -cr Wheat -T `hostname` -bg MidnightBlue -fg Wheat -fn 7x13 -fb 7x13B -display $DISPLAY

live free or die

harry
Live Free or Die
Roger Baptiste
Honored Contributor

Re: How can I call a popup window from a shell script?



One way is to open a xterm session from
the shell by calling xterm. But, i am not
sure whether you can manipulate input/output
to the poppedup xterm in this manner.
Another way is to use Xwindow functions, but
that won't fall under the realm of a "simple
shell script".

-raj
Take it easy.
Santosh Nair_1
Honored Contributor

Re: How can I call a popup window from a shell script?

if you're talking about an X-window popup, then you probably want to take a look at dtksh. The following URL give more info on this:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x29f36c96588ad4118fef0090279cd0f9,00.html

Hope this helps.

-Santosh
Life is what's happening while you're busy making other plans
Sridhar Bhaskarla
Honored Contributor

Re: How can I call a popup window from a shell script?

If you just want to pop-up a window, you can use xterm or dtterm. You can see the man pages for them.

But if you want a dialog window, you need to download xdialog. Following is the URL.

http://hpux.ee.ualberta.ca/hppd/hpux/Gtk/Xdialog-2.0.3/

Also, you need to download few more dependencies for this to work. Once it works, it's pretty cool.

-Sri

You may be disappointed if you fail, but you are doomed if you don't try