01323 649779 |
Contact us now!Phone 01323 649779, email us or fill out our online enquiry form. Newsletter |
How to run a Cron job on the first weekday of tÂhe monthThe first weekday of the month can fall on the 1st, 2nd or 3rd day of the month:
You can see from the table that:
The crontab recordsThis will run your job at 10am on the first weekday of the month:
Note 1: Parameters are ORThe day of month and day of week parameters are combined using OR rather than AND. If parameters were combined using AND, it would be possible to use the following crontab entries to run a command on the first weekday of the month:
The above doesn't work! Instead, the job is run on every weekday, twice on the 1st of the month, and maybe twice on the 2nd and 3rd of the month! Note 2: Percent signs escapedPercent signs in the crontab entry command are converted to newlines. They must be escaped using a backslash otherwise you will see an error message like this:
|
Web Design Services
Web Design PricesView pricing information for all our services. Utilities |
Privacy Policy | Terms of Use | Site Map
© 2004-2008 Switchplane Ltd. All rights reserved.
Registered company 04840582, VAT number: 819 5635 01