Alexander John Batyi on Mon, 13 Sep 1999 19:50:12 -0400 (EDT)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [Plug] redirecting stderr


> How do I redirect stderr with the bash shell ??

cat /file/not/there >/tmp/nooutput 2>/tmp/err.goes.here

In otherwords file descriptor 2 gets redirected.  You CAN say 1>
to redirect stdout but > is a shortcut.

To send strerr to stdout do this 2>&1
in other words send file descriptor 2's output to file descriptor 1.


_______________________________________________
Plug maillist  -  Plug@lists.nothinbut.net
http://lists.nothinbut.net/mail/listinfo/plug