[Gllug] This morning's shell script question

Tethys sta296 at astradyne.co.uk
Thu May 24 10:24:27 UTC 2007


Richard Jones writes:

>From a shell script I want to run a command and sends the command's
>stderr to a pipe (to the logger command, in fact).  But leave
>stdin/stdout connected to the terminal as normal.
>
>How do I do that?

	command 2>&1 >/dev/tty | command_to_consune_stderr

Tet
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list