Hi, I wanted to redirect the output of a crontab command into a log file - instead of the standard mail cron produces. I tried this: 0 * * * * root /directory/command > /logdirectory/filename-`date +%d-%m-%Y-%T` but when the command is executed I still get a mail and the file is not written. The mail looks like this: /bin/sh: -c line 1: unexpected EOF while looking for matching ``' /bin/sh: -c: line 2: syntax error: unexpected end of file what is wrong here? Thanks Clemens --------------------------------------------------------------------- To unsubscribe, e-mail: suse-linux-unsubscribe@suse.com For additional commands, e-mail: suse-linux-help@suse.com
On Don, Aug 24, 2000 at 08:22:14 +0200, Clemens Hermann wrote:
I wanted to redirect the output of a crontab command into a log file - instead of the standard mail cron produces. I tried this:
0 * * * * root /directory/command > /logdirectory/filename-`date +%d-%m-%Y-%T`
but when the command is executed I still get a mail and the file is not written. The mail looks like this:
/bin/sh: -c line 1: unexpected EOF while looking for matching ``' /bin/sh: -c: line 2: syntax error: unexpected end of file
Try to use the date command with the complete path: /bin/date instead of date hth Jan P.S.: This ist a german speaking list. Write here in english only when you don't understand german. --------------------------------------------------------------------- To unsubscribe, e-mail: suse-linux-unsubscribe@suse.com For additional commands, e-mail: suse-linux-help@suse.com
participants (2)
-
haribeau@gmx.net
-
Jan.Trippler@t-online.de