I’ve come across this problem in my profession and my solution is much simpler and easier to understand than the one proposed in this verbose write-up. #!/bin/bash Have cron execute this bash script at the desired run-time each day to achieve the desired results. Plug. Chug. Done.
if [ `date --date="+1 day" +%d` = 01 ]; then
execute desired task
fi
Is this the Last Day of the Month?
0
April 12th, 2006, In Linux, by Adam Myers
Leave A Response
Email Updates
Interested in receiving new articles in your Inbox as they are posted? Subscribe to our email feed by providing your address below!











