syntax problem with cron

Alexander Dalloz alexander.dalloz at uni-bielefeld.de
Wed Sep 8 12:54:17 UTC 2004


Am Mi, den 08.09.2004 schrieb Steven Stern um 14:50:

> I'm having a problem running a command from cron that works well from the
> command line.
> 
> The cron line is
> 
>   1 * * * * sleep $[ $RANDOM % 1800 ] ;/usr/bin/freshclam --quiet

>   Steve 

See "man 5 crontab". "%" is a special sign and has to be escaped.

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 14:53:28 up 9 days, 12:10, load average: 1.52, 1.42, 1.25 
-------------- 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/48df418a/attachment-0001.sig>


More information about the fedora-list mailing list