I run a script via cron every hour that dials up my ISP and
retrieves my email. This script checks if anyone is logged
on to my pc by running a who command and checking for
output. If someone is online the slip connection will not
be dropped - if noone is online the slip connection is
dropped via dip -k.
If I happen to be using Xwindows and not have any terminal
sessions going on, the script will drop my connection. This
is a bummer if I happen to be in the middle of ftp'ing a
file with netscape etc...
I found a workaround by checking to see if X is running
before the script drops the carrier. Here is my dilemma. I
want to be able to send a message with something similar to
xmessage that tells me the connection is about to drop and
gives me an option of aborting or not. And, my question: Is
there any way to use xmessage to send the message from a
cron/at process that is not connected to the X display? If
not xmessage, is there any other way to send a message to an
X session that will allow me limited interaction (yes or
Thanks in advance.....