Skip to main content

Thread: run cron job second tuesday of the month


found @ web cite , says run in script. question work? see if top command in script run on second tuesday , if not second tuesday 2 command in script run reading right?

#!/bin/bash
if [ $(date +%w) -eq 2 -a $(date +%e) -gt 7 -a $(date +%e) -le 14 ]
then
<code executed here>
else
<do something>
exit
fi

yes, reading right.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [all variants] run cron job second tuesday of the month


Ubuntu

Comments

Popular posts from this blog

Is this Captcha code corrupt?

How to Grab email address from webform and insert into form action

Thread: lower arc in openoffice draw