[sclug] cron expression
Jonathan H N Chin
jc254 at newton.cam.ac.uk
Tue Jan 23 16:39:14 UTC 2007
darren wrote:
> Is it possible to create a single cron expression (for vixie cron) that
> specifies the penultimate day of the month?
If you have GNU date on your path:
MM HH * * * [ `date -d+2day +%d` = 1 ] && MYSCRIPT
Fill in MM, HH and MYSCRIPT as appropriate.
You could give DoM as "28,29,30,31" but it hardly seems worth it.
-jonathan
--
Jonathan H N Chin, 2 dan | deputy computer | Newton Institute, Cambridge, UK
<jc254 at newton.cam.ac.uk> | systems mangler | tel/fax: +44 1223 767091/330508
"respondeo etsi mutabor" --Rosenstock-Huessy
More information about the Sclug
mailing list