Thanks Cameron, Ramesh, & Steve. I ended up putting in in a script.

Mike

On Saturday 08 March 2003 05:10, Cameron Simpson wrote:
> On 03:18 08 Mar 2003, M.Lewis <[EMAIL PROTECTED]> wrote:
> | > Percents are special in Vixie cron crontabs. You need to slosh it:
> | >
> | >   /bin/tar czvf /root/dbman_back-`date '+\%m\%d\%Y\%H\%M'`-tar.gz
> | > /var/www/cgi-bin/dbman
> | >
> | > "man 5 crontab" says
> | >   [...]   Percent-signs  (%) in the command, unless
> | >   escaped with backslash (\), will be changed  into  newline
> | >   characters, and all data after the first % will be sent to
> | >   the command as standard input.
> |
> | That didn't work Cameron. It gives me a file with the name of:
> |     dbman_back-\03\08\2003\03\14-tar.gz
>
> Bugger. Maybe the manual lies.
>
> Just chuck it in a script and call the script:
> I tend to do that anyway myself as soon as a cron command becomes even
> slightly complex. It also means you don't need to worry about weird cron
> syntaxes interfering with your shell syntax.
>
> Cheers,
> --
> Cameron Simpson, DoD#743        [EMAIL PROTECTED]    http://www.zip.com.au/~cs/
>
> ... and that was only one of many occasions on which I met my death,
> an experience which I don't hesitate to recommend strongly.
>       - Baron von Munchausen

-- 
  
  This fortune soaks up 47 times its own weight in excess memory.
 14:05:01  up 49 days, 21:05,  7 users,  load average: 0.00, 0.03, 0.12
  
  Linux Registered User #241685  http://counter.li.org



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to