At 02:01 PM 10/9/02 -0400, Paul Kraus wrote:
>I know you can redirect the standard output with > and then the file
>name you want. But how do you also redirect the STRERR?

At least with bash, you use

         2> filename

to redirect STDERR to its own file.

You use

         > filename 2>&1

to redirect both STDOUT and STDERR to the same file (the second part, to be 
exact, redirects STDERR to STDOUT, which the first part has already 
redirected to the file).


--
-------------------------------------------"Never tell me the odds!"--------
Ray Olszewski                                   -- Han Solo
Palo Alto, California, USA                        [EMAIL PROTECTED]
-------------------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to