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?
cmd 2>file will leave stdout on screen and send
stderr to file
cmd > file 2>&1 will send both to file
(cmd > file1) 2>file2 sends stdout to file1 and stderr to file2
then there's also 'tee' if you ever need it.
-jdr-
-
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