[TriLUG] bash script execution time
William Sutton
william at trilug.org
Fri Jul 8 18:19:44 EDT 2005
Did you want a part of the script to execute during the 23:30-2:30
portion? If so...probably need to test the output from `date +'%H:%M'`
--
William Sutton
On Fri, 8 Jul 2005, Rick DeNatale wrote:
> On 7/8/05, Shane O'Donnell <shaneodonnell at gmail.com> wrote:
> > crontab allows for both ranges and intervals:
> >
> > */15 2-23 * * * command
> >
> > should get you close, but it doesn't address the :30 requirement.
>
> No reason you can't have more than one crontab file entry for the command.
>
> # run at 0230 and 0245
> 30,45 2 * * * command
> # run every 15 minutes between 0300 and 2200
> */15 3-22 * * * command
> # run at 2300, 2315 and 2330
> 0,15,30 23 * * * command
>
> It wasn't clear if you actually wanted to run at 0230 and 2330 or not,
> this does, but the changes required to exclude the end-points should
> be obvious.
> --
> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
> TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc
>
>
More information about the TriLUG
mailing list