I am trying to use the CRON utility in Fedora 11 & CentOS...
I intend to run a script which pops up a warning message every hour and i made the following entry using "CRONTAB -e "
* * * * * sh /bin/myscript.sh
But this does not seem to be running.
Another thing to note is that, My script contains a GUI command
" dialog --title or in my case whiptail --title "
I was wondering if CRON runs this scripts, will show a pop up...?
Can this script be run using CRONTAB..?
Please help
That will run the script every minute, not every hour.
To run the script on the hour:
0 * * * * sh /bin/myscript.sh
You need to set the DISPLAY variable.
How do you Declare a Display variable within a script....
These are commands which output the contents inside the declaration
It's DISPLAY, not Display.
DISPLAY=:0.0
(Check the value in a shell first.)
Thank you very much. It was very helpful.