thunderamur
August 21st, 2011, 07:17 AM
Have an old bug with memory leak in gnome-power-manager in my Ubuntu Lucid 64-bit. It eat more than 100MB of RAM for some day. I entered in terminal "killall gnome-power-manager" and than "Alt+F2 + gnome-power-manager" to restart this daemon. I want to put this simple operations in cron.
1. I created script to restart
#!/bin/bash
killall gnome-power-manager
gnome-power-manager&I tried this script in terminal - passed.
2. I added the row to cron by "sudo crontab -e"
*/1 * * * * /home/thunder/soft/restart-gnome-power-managerI waited for a minute and saw that process of gnome-power-manager was killed, but new one was not created.
I think I make mistake in script. How to launch gnome-power-manager by cron?
1. I created script to restart
#!/bin/bash
killall gnome-power-manager
gnome-power-manager&I tried this script in terminal - passed.
2. I added the row to cron by "sudo crontab -e"
*/1 * * * * /home/thunder/soft/restart-gnome-power-managerI waited for a minute and saw that process of gnome-power-manager was killed, but new one was not created.
I think I make mistake in script. How to launch gnome-power-manager by cron?