Cron job every few minutes ??

Vincent Trouilliez vincent.trouilliez at wanadoo.fr
Sat Dec 25 22:47:41 UTC 2004


> To do a cron  
> 
> EDITOR=vi
> 
> 
> create a file with vi
> 
> we will make it easy and call it <username>cron
> example file
> 
> vi vramcron
> ######################################
> 
> #vram echo the date to the console every 
> #5 minutes between 6 AM and 6 PM
> 0,5,10,15,20,25,30,35,40,45,50,55 06-18 * * * /bin/echo > /dev/console
> #############################################
> 
> now save and exit...
> 
> 
> Now to place your crontab in the cron, type cron followed by the newly
> created file.
> 
> crontab vramcron
> 
> 
> 
> 
> A copy of the file has now been place in /var/spool/cron, and the
> filename  of your crontab is the same as your login name..
> 
> 
> 
> crontab -l will list your cron jobs..
> 
> 
> Hope this helps..
> 
> 
> Get back if this is not clear.
> 
> 
> Vram


Doesn't work, notihng displays on the console, tried all of them, tty 1
to tty6, but nothing displays at the prompt. Nothing displays in the
termina either.
But the job has been added, I saw it in /var/blah-blah, and there is no
error message from cron in my mail box.

Vince






More information about the ubuntu-users mailing list