Re: syntax problem with cron

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux