|
Prev: [Commercial] Linux System and Kernel Programming: Hands-On Training from Experts
Next: Routing to multiple interfaces
From: Chris Davies on 1 Apr 2008 04:57 R C V <rssv99(a)gmail.com> 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 <filename> > The contents of the <filename> 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 |