|
-
This was interesting question so I posted it on unix.com, here is what Perderabo came up with....
This usual solution is something like, first write a wrapper script that will run somecommand only if the day of the month is 7 or less:
code:--------------------------------------------------------------------------------
#! /usr/bin/ksh
day=$(date +%d)
if ((day <= 7)) ; then
exec somecommand
fi
exit 1
--------------------------------------------------------------------------------
Then run the wrapper every Monday: "0 0 * * 1 wrapper".
Doug
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|