[SunHELP] Crontab

Edward Chase echase at studentweb.providence.edu
Thu May 27 15:31:40 CDT 2004


That's slick...

Didn't know you could do stuff like that in there.



> -----Original Message-----
> From: sunhelp-bounces at sunhelp.org 
> [mailto:sunhelp-bounces at sunhelp.org] On Behalf Of Sandwich Maker
> Sent: Thursday, May 20, 2004 10:52 AM
> To: sunhelp at sunhelp.org
> Subject: Re: [SunHELP] Crontab
> 
> 
> " From: "Faizel Small" <faizelsmall at webmail.co.za>
> " 
> " I need to run a cronjob the first Saturday of every month 
> at 19h00 . " Could you please assist with the settings. " 
> " I currently have the following setting and this run the job 
> every Saturday. " 00 19 1,2,3,4,5,6,7 * 6 /opt/sybase/dba/java/gen.scr
> 
> it would be nice if all the date fields were anded, but 
> day-of-the-month and day-of-the-week are ored...
> 
> you have to attack the problem another way, with the date cmd.
> 
> 00 19 * * 6 if [ `date +\%e` -le 7 ]; then 
> /opt/sybase/dba/java/gen.scr; fi tests every saturday but is 
> only true if it's within the first seven days of the month. 
> ______________________________________________________________
> __________
> Andrew Hay                                  the genius nature
> internet rambler                            is to see what 
> all have seen
> adh at an.bradford.ma.us                       and think what 
> none thought



More information about the SunHELP mailing list