Cron job every few minutes ??

Vram lamsokvr at xprt.net
Sat Dec 25 21:59:17 UTC 2004


On Sat, 2004-12-25 at 22:43 +0100, Vincent Trouilliez wrote:
> > cron will do it...
> > 
> > Just create the cron job and it will run...
> > 
> > Vram
> 
> Seems to be rlecutant to work, do you know how to make a cron job ?
> 
> I put a file  in  /etc/cron.hourly
> 
> In the file, I put nothing but the command (for test purposes) :
> 
> "gedit /proc/acpi/thermal_zone/THRM/temperature"
> 
> But it doesn't work, gedit doesn't starts as expected from
> the /etc/crontab file. :o(
> 
> I made sure that my file (which I called "temp_log" was executable.
> 
> But still, doesn't work.
> 
> I will try restarting cron.
> 
> Vince
> 
> 

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


> 





More information about the ubuntu-users mailing list