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

Could not place because the source rectangle is empty

Thread: Using smartcard reader with vpnc

Adobe Font Folio 7.0 or just 7?