Re: Using "at" command
- From: Lew Pitcher <lpitcher@xxxxxxxxxxxx>
- Date: Wed, 26 Mar 2008 17:49:07 -0400
R C V wrote:
hello,
I wanted to schedule jobs to start within a space of few
seconds of each other. But 'at' is giving me a resolution of 'min'.
So I decided to put all tasks in a file and invoke
at -f <filename>
The contents of the <filename> are:
at now+1 minute "ls -l"
echo ls -l | at now + 1 minute
at now+2 minute "date"
echo date | at now + 2 minutes
But I get a error "Garbled time"
Can you tell me what is wrong here..
1) at reads stdin (or a named file) for the commands to execute
2) the time qualifier needs spaces between each of its components
Also is it possible to give interval in seconds.
No. Time units can be minutes, hours, days, or weeks. Seconds are not
recognized as time units
TIA,
R C
--
Lew Pitcher
Master Codewright & JOAT-in-training | Registered Linux User #112576
http://pitcher.digitalfreehold.ca/ | GPG public key available by request
---------- Slackware - Because I know what I'm doing. ------
.
- References:
- Using "at" command
- From: R C V
- Using "at" command
- Prev by Date: Re: Two Network cards
- Next by Date: Re: Achieving what's done by Microsoft's "Internet Connection Sharing"
- Previous by thread: Using "at" command
- Next by thread: Re: Using "at" command
- Index(es):