Re: Using "at" command



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. ------


.