"Ambiguous pipeline" question

Chuck Swiger cswiger at mac.com
Thu May 15 23:44:15 PDT 2003


TOPCAT CONSULTING wrote:
[ ... ]
> /usr/sbin/periodic daily 2>&1 | lpr
> -it just gives me an "Ambiguous output redirect"
> 
> How can I get this to sendmail, *and* also to the printer?

Run the command under /bin/sh (or bash,zsh,ksh,etc) and not a csh/tcsh 
shell.

-Chuck




More information about the freebsd-questions mailing list