Cron job every few minutes ??

Vincent Trouilliez vincent.trouilliez at wanadoo.fr
Sat Dec 25 21:30:27 UTC 2004


> A crontab file that looks like this should work:
> 
> 0,6,12,18,24,30,36,42,48,54 * * * * 	command
> 
> or even:
> 
> */5 * * * *	command
> 
> It's a good idea to use the full path to the command.


Ah well, doesn't quite work :-/

As a first test (I have never created cron jobs before!), I didn't try
specifying '*/x' or 'a,b,c,d... * * * *', I only let the default
setting, just to see if it would start the command I put
in  /etc/cron.daily

But it doesn't work. So I red in the man page, that I need to run 'cron'
by hand to make it read the crontab file. So I did that, but I get this
error ! :  

cron: can't lock /var/run/crond.pid, otherpid may be 3634: Resource
temporarily unavailable

:o(


Vince






More information about the ubuntu-users mailing list