You are not logged in.

#1 2009-07-17 13:12:19

mmf1902
Member
From: Mexico city
Registered: 2009-05-08
Posts: 53

Problem with cron

Hi there,


I made a little script in python that change the gnome desktop background randomly. I am using cron to execute the script every 30 minutes (using crontab -e). To test the script I wrote in the terminal:

sudo /etc/rc.d/crond restart

and cron executes without problems (desktop wallpaper change every 30 minutes as expected)

The problem is that when I restart the computer the desktop background does not change any more. Cron log says that the scripts is already executed at the configured interval but nothing changes in the wallpaper.

Any help would be appreciated.


Tks

Offline

#2 2009-07-17 13:47:54

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: Problem with cron

this is the third post i've seen about cron not acting right after a reboot but acting fine after a manual restart.  i can't remember if the others found a solution or what it was; but i'd suggest trying a different cron deamon.  fcron has some nice features and is a drop in replacement for the default [d]cron.

could be worth a try.

Offline

#3 2009-07-17 20:08:58

rusty99
Member
Registered: 2009-03-18
Posts: 253

Re: Problem with cron

I had the same issue and never did find a solution, ended up with a more manual approach which worked better in my case.
What made things odd is my backup scripts worked and continue to work with cron as intended.

Offline

#4 2009-07-18 06:07:02

mmf1902
Member
From: Mexico city
Registered: 2009-05-08
Posts: 53

Re: Problem with cron

I gave up cron and solved using an endless loop with a sleep call.

Tks for the answers

Offline

Board footer

Powered by FluxBB