Running a cron job for the last day of the month

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

 



Hello,

I would like to run a script on the last day of the month, preferably at
23:59 hours. The problem that I am seeing is that each month has a
slightly different last day IE: (28/29, 30, or 31) I can see how I can
run the report for the first day of the month, which works fine, but it
names all the directories/files for the following month, rather than the
month the report data comes from.

I use the:

#!/bin/sh
date=`/bin/date -d now '+%b'`

to set the date to name the files/directories.

Any help is appreciated.

Thanks!

Mike


-- 
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