Re: Createing a Crontab for the last day of the month

2001-06-25 Thread Ted Harding
On 25-Jun-01 Rick Pasotto wrote: > In the script that the cron job runs every 28-31 put the line: > > if [ `date +%m` == `date +%m --date=tomorrow` ]; then exit; fi About as neat as you can get!! Ted. E-Mail: (Ted Harding) <[E

Re: Createing a Crontab for the last day of the month

2001-06-25 Thread Dave Sherohman
On Mon, Jun 25, 2001 at 04:51:51PM -0400, Rick Pasotto wrote: > In the script that the cron job runs every 28-31 put the line: > > if [ `date +%m` == `date +%m --date=tomorrow` ]; then exit; fi Or, to put all the logic within the crontab itself (a Good Thing, since you then only have to look in o

RE: Createing a Crontab for the last day of the month

2001-06-25 Thread Ted Harding
On 25-Jun-01 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? You can't use cron syntax to catch the last day of the month. What you can do is to run, every day, a script which checks wh

Re: Createing a Crontab for the last day of the month

2001-06-25 Thread Rick Pasotto
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 --d

Re: Createing a Crontab for the last day of the month

2001-06-25 Thread D-Man
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? How about using the first instead? It's only 1 day later, and is much easier to compute. Other

Createing a Crontab for the last day of the month

2001-06-25 Thread Miller, Jim
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? / * Jim Miller * * Analyst/ Programmer* * N