In article <[EMAIL PROTECTED]>, Jeff <[EMAIL PROTECTED]> wrote: > We have a cron job that needs to run every 15 minutes throughout > business hours. The first run is at 8:00, the last run is at 17:00. Is > it possible to specify this time range in a single line? > > */15 8-17 * * 1-5 will run 8:00 - 17:45. That's not what I want. > > Likewise > > */15 8-16 * * 1-5 will have the last run at 16:45, not 17:00 > > This is more of a brainteaser than a real problem. I can easily > configure the job with multiple entries, but I'm a little > obsessive-compulsive so I want to try to do it with one entry.
I'm pretty sure it's not possible to do in one line just in cron. You can do it with a bit of shell too: */15 8-17 * * 1-5 [ `date +\%H\%M` -lt 1715 ] && /do/my/job.sh Cheers Tony -- Tony Mountifield Work: [EMAIL PROTECTED] - http://www.softins.co.uk Play: [EMAIL PROTECTED] - http://tony.mountifield.org _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos