Re: crontab query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hallo,
doesn t it make more sense to start the script every hour and check all conditions in the script?
Ralf

Von meinem iPad gesendet

> Am 12.11.2020 um 15:42 schrieb Frank M. Ramaekers Jr. <frank@xxxxxxxxxxxxx>:
> 
> I need to schedule a process/program every hour on the hour between 9am and 4pm on the 2nd through the 9th of each month except on Saturday and Sunday.  So, I tried this entry:
> 
> 0 9-16 2-9 * 1-5 ./myprog.sh
> 
> Unfortunately it runs outside of the 2nd through the 9th and still runs on Sat. through Sun.
> 
> Is there a way to do this (outside the program itself)?
> 
> -Frank
> 
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> https://lists.centos.org/mailman/listinfo/centos
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux