Results 1 to 4 of 4
Greetings all,
I recently decided to switch from XP to Ubuntu. I am now (almost) happily running Hoary, AMD64 version. I've had a few teething problems, and google led me ...
- 03-31-2005 #1Just Joined!
- Join Date
- Mar 2005
- Posts
- 1
Crontabs not running?
Greetings all,
I recently decided to switch from XP to Ubuntu. I am now (almost) happily running Hoary, AMD64 version. I've had a few teething problems, and google led me to this forum more often than not. But there are still one or two things I have not been able to solve, and cron is one of them.
The story is this: My ISP has unlimited bandwith between the hours of 2:00am and 9:00am. My quest; to run Azureus at 2:00am and then shut it down at 9:00am.
I fire up vi and create the following file 'schedule_azureus'
(Btw, if there's a more elegant way to do this, please let me know)Code:0 2 * * * /home/####/apps/azureus/azureus 0 9 * * * killall java
I then type 'crontab schedule_azureus'. "crontab -l" assures me that the jobs are scheduled. I have no cron.allow or cron.deny entries.
I can see the cron process running. I can see cron.daily tasks appearing in my cron logs in /sys/var. I am happy. I go to sleep.
I wake up and check my machine before I go to work. Azureus is not running. I check the logs. There was no sign that cron even attempted to run either of my jobs. Similar experiments reveal that cron will not execute anything I put in a crontab. Using crontab -e and manually adding in the jobs did not work. Running crontab -u #### did not work either.
Any suggestions?
Thanks!
- 04-11-2005 #2Just Joined!
- Join Date
- Apr 2005
- Posts
- 1
also the same problem
I have problem with crond. When I define very simple command to run in crontabs like this:
30 * * * * mkdir /tmp/harddisk/a
is it ok but when I define something like this:
30 1 * * * mkdir /tmp/harddisk/a
the command is not run. I tried also 30 01 .............. with the same result.
with command crontab -l I can see that everything is OK.
I have mounted me USB stick to tmp/harddisk.
- 07-13-2006 #3Just Joined!
- Join Date
- Jul 2006
- Posts
- 1
I Have a simple question
My script has to run every day at 8H30
Therefore, i made this setting
30 8 * * */usr/bin/perl /usr/local/4admin/apache/###/MH_Systems/cron.pl
did i make a mistake, because it isn't realy working like it should...
- 07-13-2006 #4
The general syntax looks like that :
So you should mention which user runs the command.
Originally Posted by /etc/crontab
For example if I want to run CLAMSCAN everyday at 4h27 :
Code:27 4 * * * root /usr/bin/clamscan -r / -l /var/log/lastscan.txt
"To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."
-Bruce Lee


Reply With Quote
