I have 4 servers and I want each one of them to execute a reboot on Sunday.
- Server 1 - first Sunday of the month (first week)
- Server 2 - Second Sunday of the month (2nd week)
- Server 3 - third Sunday of the month (3rd week)
- Server 4 - fourth Sunday of the month (4th week)
how can I do it with Crontab? Thanks! Dotan.
The first Sunday will always fall between the 1st and the 7th so
will run doSomething at 10 past 1 on a Sunday that falls between the 1st and the 7th. Similarly the second Sunday will fall between the 8th and 14th, the third between 15th and 21st and the 4th between 22rd and 28th so adjust the day of month accordingly on the relevant server.
Note that the test is required because