And then verify that the hour is not % 2 to run every half hour in the script.30 * * * * echo "run every half hour"
Psudocode: if (! $currenthour % 2) { dostuff; } else { exit 0; #oopsie it is an even hour just exit }
In reply to Re: Re: Scheduling with Perl?
by waswas-fng
in thread Scheduling with Perl?
by EyeOpener
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |