This does use up memory (and any open files, etc) while the script is sleeping, but doesn't use up CPU. You could easily have the "do stuff" section simply call another script, so you have less to worry about in terms of keeping resources booked in your main script.while (1) { # do stuff sleep(60*60*3); # sleep for three hours }
In reply to Re: Using perl as a cron script?
by jsegal
in thread Using perl as a cron script?
by BUU
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |