stderr

stderr

Post by Kempele » Tue, 14 Dec 1999 04:00:00



How can I see the output of the stderr of a program?

--
Kempelen

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

stderr

Post by mars1.. » Tue, 14 Dec 1999 04:00:00




> How can I see the output of the stderr of a program?

> --
> Kempelen

> Sent via Deja.com http://www.deja.com/
> Before you buy.

Assuming you mean 'only' the stderr output, you can redirect stdout to
/dev/null.  What you have left is stderr.

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.

 
 
 

stderr

Post by Christopher J. Matter » Tue, 14 Dec 1999 04:00:00



> How can I see the output of the stderr of a program?

By default, it should appear right on your terminal.
Why are you having trouble seeing it?

                     Chris Mattern

 
 
 

stderr

Post by Bernard Chandle » Tue, 14 Dec 1999 04:00:00



> How can I see the output of the stderr of a program?

> --
> Kempelen

> Sent via Deja.com http://www.deja.com/
> Before you buy.

find out what the standard error of the program is or redirect it 2>&1
to standard out.
 
 
 

stderr

Post by John Gord » Tue, 14 Dec 1999 04:00:00



> How can I see the output of the stderr of a program?

under normal circumstances, it's pretty simple.  just run the
program, and stderr will appear on the screen.

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

2. TGUI9440AGi Setup

3. stderr & stdout to file and stderr to screen

4. mouseproblems

5. ksh redirect stdout & stderr > file1, stderr > file2

6. 1 * uESZBKsVN- Solaris 5.7(x86)

7. redirect stderr output

8. set font under fvwm95

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