Re: Createing a Crontab for the last day of the month
On Mon, Jun 25, 2001 at 04:26:12PM -0400, Miller, Jim wrote:
> Hello guys,
> Is there an easy way to run a script the last day of each month using
> cron. IE it would handle the 30,31,29/28 issue?
In the script that the cron job runs every 28-31 put the line:
if [ `date +%m` == `date +%m --date=tomorrow` ]; then exit; fi
--
Man makes mistakes. But every act and habit has its consequences.
-- Frédéric Bastiat (1801-1850)
Rick Pasotto rickp@telocity.com http://www.niof.net
Reply to: