On Thursday 23 February 2006 11:33 am, daniel parkes wrote:
I have to run a cronjob every 15 seconds, and i have a doubt, does runing a job so quickly overload the machine??, i dont mean if the job that cron runs loads the machine, i mean does cron load the machine by itself each time it runs to look for jobs?? Cron runs on a 1 minute interval, but it stays in memory as it is a daemon. If you need to run a task every 15 seconds you should simply run it as a daemon. It is trivial to wrap something in a script: #!/bin/bash while [ 1 ] do # do whatever task you want to do sleep 15 # sleep for 15 seconds done -- Jerry Feldman
Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9