first you must have the right to have a crontab, or login as root, then crontab -e (edit), and you add your line :
min hour day_of_month month weekday
to run something every first monday of every month at 8:15, just do :
15 8 1-7 * 1 command
that is to say you'll launch your command every monday that is between the 1st and 7th day of the month, that is to say the first monday ...
# Mon - Fri, & Sun run daily process
# Saturday run weekly process except:
# the 1st Saturday of each month run monthly process
case $wkdate in
6)
if [[ $DD -lt 8 ]] ; then
echo run monthly process
./month_process.sh
else
echo run weekly process
./weekly_process.sh
fi
;;
*)
echo run daily process
./daily_process.sh
;;
esac
----------------------------------------------------
Bookmarks