06-23-2012 10:31 PM
Is there any way to schedule cron execution on every first friday each month ?
so far I'm using:
0 12 * * 5 /test.sh
but it's for every friday and shell handles this internally checking for existince some control files.
06-23-2012 11:30 PM
00 00 * * 5 /test.sh
>but it's for every Friday and shell handles this internally checking for existence some control files
As Steven said, you must check for the first Friday in your script:
if [ $(date +%e) -gt 7 ]; then