directing output in crontab

Michael Torrie torriem at
Tue Jul 22 16:13:50 MDT 2008

Wade Preston Shearer wrote:
>> For /bin/sh, the typical syntax to send stderr to the same place as
>> stdout is "2>&1".
> Wouldn't that take the standard error and redirect it back to the  
> display? I want to take the standard output and standard error and  
> send them both to a log file.

Sure.  you use 2>&1 when doing that.  Cause when you're redirecting to a
file you're redirecting stdout.

More information about the PLUG mailing list