On Sun, May 02, 1999 at 06:56:58AM +0300, Martin Barnard wrote:
> Hi, I was wondering if there was a program anywhere which will open a message
> box in X containing a text string that's passed to it. 
> for example, if I wanted a bash script that would open a message box telling me
> of an event when I have no terminals open.
> If anyone knows of such a program, or can point me in the direction of making
> one (I'm currently learning C) then I'd be very grateful.

xmessage should do what you want.  Use it as something like:

        xmessage -buttons OK:1,Cancel:2 "This is my message."

The arguments after -buttons are the button labels to create and the exit code that
will be returned when the user hits that button.

-- 
Steve Philp
[EMAIL PROTECTED]

Reply via email to