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
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
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
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
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
5 matches
Mail list logo