syntax problem with cron

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

 



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

When run from a /bin/sh command line, it works as expected.

When run from cron, I get an email with:

  /bin/sh: -c: line 1: unexpected EOF while looking for matching `]'
  /bin/sh: -c: line 2: syntax error: unexpected end of file

What am I missing?
-- 
  Steve 
   



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

  Powered by Linux