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 -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list