Re: Cron pickle

2001-09-17 Thread Karsten W. Rohrbach
Tim Allshorn([EMAIL PROTECTED])@2001.09.17 10:40:15 +: Hello. I need to be able to run a particular program at the last minute of each month and yes I know it would be much easier to run it at the first minute of each month, but my hands are tied and my brain is too puny to work it

Cron pickle

2001-09-16 Thread Tim Allshorn
Hello. I need to be able to run a particular program at the last minute of each month and yes I know it would be much easier to run it at the first minute of each month, but my hands are tied and my brain is too puny to work it out. I know the cron command has to be something like :

Re: Cron pickle

2001-09-16 Thread Ben Smithurst
Tim Allshorn wrote: I know the cron command has to be something like : 59 23 ? ? * , with maybe some condition on the end. I think you could use something like 59 23 28-31 * * [ `date -v+1M +%d` -eq 1 ] /path/to/your/program i.e., check that in one minute's time the day of the month

Re: Cron pickle

2001-09-16 Thread Alfred Perlstein
* Ben Smithurst [EMAIL PROTECTED] [010916 19:49] wrote: Tim Allshorn wrote: I know the cron command has to be something like : 59 23 ? ? * , with maybe some condition on the end. I think you could use something like 59 23 28-31 * * [ `date -v+1M +%d` -eq 1 ]

Re: Cron pickle

2001-09-16 Thread Ben Smithurst
Alfred Perlstein wrote: * Ben Smithurst [EMAIL PROTECTED] [010916 19:49] wrote: Tim Allshorn wrote: I know the cron command has to be something like : 59 23 ? ? * , with maybe some condition on the end. I think you could use something like 59 23 28-31 * * [ `date -v+1M +%d` -eq

Re: Cron pickle

2001-09-16 Thread Josef Karthauser
On Sun, Sep 16, 2001 at 08:07:14PM -0500, Alfred Perlstein wrote: I'm not a date(1) wizard, but there's a possible issue here, if the system is loaded cron may skip a beat possibly and that conditional may be delayed such that it doesn't trigger. My suggestion would be to use something

Re: Cron pickle

2001-09-16 Thread Terry Lambert
Tim Allshorn wrote: Hello. I need to be able to run a particular program at the last minute of each month and yes I know it would be much easier to run it at the first minute of each month, but my hands are tied and my brain is too puny to work it out. 1) Run it the first minute

Re: Cron pickle

2001-09-16 Thread Dan Nelson
In the last episode (Sep 16), Terry Lambert said: Tim Allshorn wrote: I need to be able to run a particular program at the last minute of each month and yes I know it would be much easier to run it at the first minute of each month, but my hands are tied and my brain is too puny to

Re: Cron pickle

2001-09-16 Thread Leo Bicknell
On Mon, Sep 17, 2001 at 10:40:15AM +1000, Tim Allshorn wrote: I need to be able to run a particular program at the last minute of each month and yes I know it would be much easier to run it at the first minute of each month, but my hands are tied and my brain is too puny to work it

Re: Cron pickle

2001-09-16 Thread Greg Black
Tim Allshorn wrote: | I need to be able to run a particular program at the last | minute of each month and yes I know it would be much easier to | run it at the first minute of each month, but my hands are tied | and my brain is too puny to work it out. This cannot be done with cron, even

Re: Cron pickle

2001-09-16 Thread Eugene Grosbein
On Mon, Sep 17, 2001 at 12:17:30PM +1000, Greg Black wrote: | I need to be able to run a particular program at the last | minute of each month and yes I know it would be much easier to | run it at the first minute of each month, but my hands are tied | and my brain is too puny to work it

Re: Cron pickle

2001-09-16 Thread Greg Black
Eugene Grosbein wrote: | On Mon, Sep 17, 2001 at 12:17:30PM +1000, Greg Black wrote: | | | I need to be able to run a particular program at the last | | minute of each month and yes I know it would be much easier to | | run it at the first minute of each month, but my hands are tied | |

Re: Cron pickle

2001-09-16 Thread Steve Ames
On Mon, Sep 17, 2001 at 01:07:59PM +1000, Greg Black wrote: Eugene Grosbein wrote: | This can be done with cron with single entry and small overhead. | Run whis script at last minute of every day (or every 28-31): | | #!/bin/sh | | tomorrow=`date -v+1d %d` | if [ $tomorroq -ne 01 ];

Re: Cron pickle

2001-09-16 Thread Eugene Grosbein
Greg Black wrote: Eugene Grosbein wrote: | On Mon, Sep 17, 2001 at 12:17:30PM +1000, Greg Black wrote: | | | I need to be able to run a particular program at the last | | minute of each month and yes I know it would be much easier to | | run it at the first minute of each month,