help-gnubatch
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [help-gnubatch] How to specify date to run on command line


From: Reuti
Subject: Re: [help-gnubatch] How to specify date to run on command line
Date: Wed, 15 Feb 2012 23:18:19 +0100

Am 15.02.2012 um 18:02 schrieb Wechsler, Steven:

> Is there a way to do this with days of the week rather than dates? For 
> example:
> 
> Monday,15:42
> 
> The reason I ask is that I'm setting up a system so that jobs can be created 
> with config files, but the date in the config file would be inaccurate if 
> it's run a week after it's been created.

What about a repeating job, which will work only on the not-avoided-day(s):

$ gbch-r -A Wed -r Days:1 -T 23:05 -S ./onetimer.sh

Well, it has to remove itself after the run.

-- Reuti


> I could of course add a function to calculate the date of the next Monday, 
> but it would be easier if this is already done.
> 
> Steve
> 
> -----Original Message-----
> From: Reuti [mailto:address@hidden 
> Sent: Wednesday, February 08, 2012 5:41 AM
> To: Wechsler, Steven
> Cc: address@hidden
> Subject: Re: [help-gnubatch] How to specify date to run on command line
> 
> Am 07.02.2012 um 23:26 schrieb Wechsler, Steven:
> 
>> I think I've read all the documentation (including the man pages) and don't 
>> seem to be able to figure out the correct format to specify a particular 
>> date and time for the start of a job using gbch-r.
>> 
>> Can someone help me out?
> 
> Indeed, it seems nowhere to be specified in detail:
> 
> $ gbch-r -T "2012/05/17,15:42" ./test.sh $ gbch-jlist -T
> 12067 reuti test.sh   sh 150 1000 17/05/2012 15:42 
> 
> If you only need date exor time, you can leave the other out.
> 
> -- Reuti
> 
> 
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]