How can I see the output of the stderr of a program?
--
Kempelen
Sent via Deja.com http://www.deja.com/
Before you buy.
> --
> Kempelen
> Sent via Deja.com http://www.deja.com/
> Before you buy.
For instance:
/usr/local/bin/someprogram > /dev/null
or
/usr/local/bin/someprogram > someprogram.out 2>someprogram.err
the 2> redirects stderr.
--
# unrm /
ksh: unrm: not found
# man cpio
Sent via Deja.com http://www.deja.com/
Before you buy.
since you asked the question, though, i assume that you have
some special need. are you in a graphical environment, or
do you need to separate stdout from stderr, or some other
special condition?
---
John Gordon "No Silicon Heaven? Preposterous! Where would
1. Redirecting stdout and stderr, and stderr
Can the following be done in bourne shell? (csh solutions are welcome
as a second choice)
STDERR and STDOUT are to be combined and redirected into one output
file (so far, it's easy) while STDERR is to be redirected to a second
output file.
$ command > STDERR_AND_OUT > STDERR
Thanks in Advance
Minoah Tam
--
Central Survey and Mapping Agency ("CSMA")
Voice: (306) 787-2823 Fax: (306) 787-4617
3. stderr & stdout to file and stderr to screen
5. ksh redirect stdout & stderr > file1, stderr > file2
6. 1 * uESZBKsVN- Solaris 5.7(x86)
9. General stderr, stdout, /dev/null help
10. Redirect stdout and stderr in ksh
11. Life, stderr, and everything (was Re: malloc() as a user...)
12. to pipe the stderr to stdin
13. stderr