Cron problems
Thomas Keusch
fwd at gothschlampen.com
Sat Aug 28 12:22:18 UTC 2010
On Sat, Aug 28, 2010 at 01:49:18PM +0200, Bernt Hansson wrote:
Hell Bernt,
> I'm having problems with lines like this in cron, works on the command
> line, but not in cron.
>
> /sbin/dump -0uan -f - /usr | gzip -2 | ssh -c blowfish \
> targetuser at targetmachine.example.com dd
> of=/mybigfiles/dump-usr-l0-"`date "+%Y-%m-%d--%H-%M-%S"`".gz
you need to escape the percent-signs like that: \%
For why see man 5 crontab
Regards
Thomas
More information about the freebsd-questions
mailing list