Can't get cron job to start
Hi all,
Since doing a fresh install of Ubuntu 11.10, I've not been able to get a cron job to start. Code:
# Start at 2am, finish at 8am. Where do I start chasing down whatever's stopping it? TIA |
Cron uses a rather limited path, I am not 100% certain if killall will be in said path. Try using the full path to killall ($ which killall)
As a slightly unrelated note, did you know deluge has a scheduler plugin? Edit -> Preferences -> Plugins -> Scheduler |
Check that crond is running too.
|
Thanks guys - yes. aware of the path requirement but it's not starting, afaik, so it doesn't need to stop :-)
As for the scheduler, yes, that's what I'm using as the alternative, but if it doesn't work for Deluge, it won't work for any other programs. I'll check that crond is up and about. ps -ef | grep cron gives Code:
$ ps -ef | grep cron Given that the stuff above means it's going - I've tried the sudo command, so see what happens tonight my time. |
Still no joy - happy to take any further advice.
|
Does
Code:
crontab -l And have you edited the .cron file without unloading it first? Quote:
man crontab man cron Or are you editing the systems cron? Don't do that, make a user crontab. |
Output from above command follows:
Code:
@ubuntu:~$ crontab -l Will trawl the man info. |
Check that the user can use cron:
You can execute crontab if your name appears in the file /usr/lib/cron/cron.allow. If that file does not exist, you can use crontab if your name does not appear in the file /usr/lib/cron/cron.deny. If only cron.deny exists and is empty, all users can use crontab. If neither file exists, only the root user can use crontab. |
You need to remove the cron file before you edit it is what I meant. That will cause problems sometimes.
Code:
crontab -r Code:
crontab /path/mycronfile.cron |
Quote:
@teckk - I'll have a bash (no pun intended) at that process. |
All times are GMT -5. The time now is 07:05 AM. |