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
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 :
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
* 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 ]
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
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
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
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
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
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
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
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
| |
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 ];
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,
14 matches
Mail list logo