Group: comp.os.linux.networking
From: Chris Davies
Date: Tuesday, April 01, 2008 3:57 AM
Subject: Re: Using "at" command

R C V wrote:
> I wanted to schedule jobs to start within a space of few
> seconds of each other.

Separate them using sleep(1)

> But 'at' is giving me a resolution of 'min'.

Yes. So use at(1) to schedule the group

> 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"
> at now+2 minute "date"

Arrgghh. You're using at(1) to schedule at(1)!? There are occasions when
this makes sense, but this isn't one of them.

at 10pm < task1 >/tmp/task1.out 2>/tmp/task1.err &
sleep 5
task2 >/tmp/task2.out 2>/tmp/task2.err &
sleep 5
task3 >/tmp/task3.out 2>/tmp/task3.err &
wait
!

Chris

Safety Articles | Usenet Groups | Usenet News | Bluegrass