syntax problem with cron

Alexander Dalloz alexander.dalloz at uni-bielefeld.de
Wed Sep 8 16:42:08 UTC 2004


Am Mi, den 08.09.2004 schrieb Alexander Dalloz um 17:56:

> 1 * * * * sleep $[ $RANDOM \% 1800 ] ;/usr/bin/freshclam --quiet
> 
> I wouldn't use this crontab because it does not what it should do. It
> starts every single minute a new task, wating the random amount of
> seconds until it executes the freshclam process. So these "sleepers" are
> rapidly growing.

Sorry, blame me for reading and replying too fast. I will be more
careful in future (hope so:)

The crontab entry does not cause the command to be run every single
minute but a minute after each full hour. So the tasks will not rapidly
sum up. Pardon.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
Fedora GNU/Linux Core 2 (Tettnang) kernel 2.6.8-1.521smp 
Serendipity 18:37:02 up 9 days, 15:53, load average: 0.69, 0.22, 0.14 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040908/e7a5ceae/attachment-0001.sig>


More information about the fedora-list mailing list