Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

separating stdout and stderr

Name: Anonymous 2007-11-25 16:22

How can I view live separated output from stdout and stderr from a running program under Linux? I want to see stdout in one window and stderr in another window.

I can output the streams to files, but then I have to wait for the program to finish execution, or I have to keep reopening/refreshing the open files. I could just output one stream to the console, but I want to get a live view of each.

Name: Anonymous 2007-11-25 16:27

pipe them to seperate files, open two terminal windows, tail the files.

Name: Anonymous 2007-11-25 16:33

man 1 tee
Also, not a programming question so fuck you

Name: Anonymous 2007-11-25 16:35

tail -fb+0

Name: Anonymous 2007-11-25 17:00

Name: Anonymous 2007-11-25 17:35

>>5
I already knew how to do that, as I mentioned in my post. Maybe you should search for some English lessons so you can learn how to read.

Name: Anonymous 2007-11-25 17:46

mkfifo

Name: Anonymous 2007-11-25 17:48

>>3
Manatee, also known as the sea cow

Name: Anonymous 2007-11-25 18:29

Run tty in the terminal you want to redirect stderr to. Then run your program in another terminal with executable_name 2> output_of_tty.

Name: Anonymous 2007-11-25 20:44

>>6
Well, if you can't figure it out from there, you're what we call "special".

Name: Anonymous 2007-11-25 23:08

I can output the streams to files, but then I have to wait for the program to finish execution
No you don't.

Don't change these.
Name: Email:
Entire Thread Thread List