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

Re: howto tell cron run last day of month



How about something like:

if [ $(date -d tomorrow +%m) == $(date +%m) ] ; then
   echo "Not the end of the month"
else
   echo "End of the month"
fi


HTH,
your pal dave

-- 
Dave Thayer
Denver, Colorado USA
dave@thayer-boyle.com



Reply to: