Date: Sat, 28 Aug 2010 14:08:28 +0200 From: Thomas Keusch <fwd@gothschlampen.com> To: Bernt Hansson <bernt@bah.homeip.net> Cc: freebsd-questions@freebsd.org Subject: Re: Cron problems Message-ID: <20100828120828.GA7863@vs2.ichwilldichschmecken.de> In-Reply-To: <4C78F7BE.7060007@bah.homeip.net> References: <4C78F7BE.7060007@bah.homeip.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100828120828.GA7863>