cron alert message
I am not sure where to put this so I am posting the question here.
I am attempting to create a cron script to check the connection to a server using fping. Now this works, but I need to somehow alert the user on the gnome desktop. I tried using gxmessage, but the messagebox never pops up though it does work in a terminal. I was wondering how do I use gxmessage box or some other way to create an alert message as part of a cron script. |
Have you tried using zenity? I run Fedora, and have successfully used zenity within cron a few times. Have a look here - http://linux.byexamples.com/archives...og-examples-2/
Cheers, Josh |
I'm not sure if this is related but I needed to add
Code:
export DISPLAY=:0.0 |
Quote:
|
Quote:
:) |
Quote:
|
All times are GMT -5. The time now is 11:35 PM. |