Group: comp.os.linux.networking
From: Lew Pitcher
Date: Wednesday, March 26, 2008 4:49 PM
Subject: 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
> The contents of the 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. ------


Safety Articles | Usenet Groups | Usenet News | Bluegrass