in reply to cron or perl?
However, I am the type who would absolutally prefer to use cron to handle timing, as opposed to Perl. Cron is a wonderful resource, and I find it easier to use an existing resource then to recreate one. It's one thing if you will always stick to 15 minutes.. but what if you ever decide you don't want it to run on the weekends?use strict; # Loop forever while(1) { some_function(); another_function(); # Sleep statement, in seconds # 15 minutes * 60 seconds in a minute = 900 seconds sleep 900; } sub some_function { foo; bar; } sub another_function { yada_yada; wocka_wocka; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 2: cron or perl?
by tilly (Archbishop) on Jun 30, 2001 at 05:49 UTC | |
|
Re: Re: cron or perl?
by Anonymous Monk on Jun 30, 2001 at 20:57 UTC |