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)
and it works great!
The next line is supposed to restart gdesklets, though, and doesn't seem to work:
Code:
11 * * * * myusername gdesklets
I've also tried substituting "gdesklets restart" and "gdesklets shell" and neither works. If I go to a terminal and type any of these commands in, gdesklets comes up just fine, though.
Any ideas why this isn't working, or how to fix it??