Re: Running a cron job for the last day of the month

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 01, 2004 at 08:25:32AM -0800, Mike Koponick wrote:
> Hello,
> 
> I would like to run a script on the last day of the month, preferably at

[...]

if ! [ "$(date -d "+ 1 day" '+%b')"  =  "$(date  '+%b')" ]; then
  echo last day of the month
else
  echo same old month
fi

Run that at 11:59 every day.

-- 
Hal Burgiss
 


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux