cron job/gdesklets help
Since gdesklets seems to have a pretty bad memory leak, I'd like to have cron kill it and restart it once in a while. I've having trouble with getting cron to launch gdesklets, though.
Say I wanted to do it at 11 after every hour. I stick this in my crontab file to kill gdesklets: Code:
11 * * * * myusername kill $(pgrep -f gdesklets) The next line is supposed to restart gdesklets, though, and doesn't seem to work: Code:
11 * * * * myusername gdesklets Any ideas why this isn't working, or how to fix it?? |
Have you tried putting the full path to gdesklets?
|
Nope - the path isn't the problem.
It doesn't seem to work with any program that requires a display window (gdesklets, gedit, firefox, etc). Someone on another forum suggested that it might be a problem with proper access (xauth) or setting a display, but I'm having trouble finding information on either of those in the context of this problem. Here are the contents of my /etc/crontab file, if it helps: Code:
SHELL=/bin/bash |
All times are GMT -5. The time now is 05:06 PM. |