kulls has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use warnings; my @date=split(" ",localtime()); my ($cur_date,$script_flag); $cur_date=$date[2]; while() { if($script_flag) { my $var = `echo RAJA`; print $var; } @date=split(" ",localtime()); if($date[2]==$cur_date) { $script_flag=1; $cur_date=$date[2]+ 1; } else { $script_flag=0; } exit if($cur_date > 31); # As i need only for 31st of this month }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: manual cron job
by Corion (Patriarch) on Jan 25, 2006 at 11:48 UTC | |
by kulls (Hermit) on Jan 25, 2006 at 12:05 UTC | |
by CountOrlok (Friar) on Jan 25, 2006 at 15:07 UTC | |
|
Re: manual cron job
by lima1 (Curate) on Jan 25, 2006 at 17:04 UTC |