In GNU/Linux (I'm using Arch), how do you make stdin and stdout go in one terminal, and stderr go exclusively in another terminal? I think this is a simple command but I dont know it :(
Maybe using tee or pipe into /dev/tty. I am not able to test them right now, just some ideas.
To redirect stderr (file descriptor 2), the syntax is: 2>/dev/null This trashes anything going to stderr. Like bmp alluding to, you may be able to redirect it to the target tty's device file.
how do I know which tty file belongs to whatever xterm/rxvt window ?
So, the better way to do this is to probably direct them to two different files and then tail those files in a terminal. So when you execute your program you would write something like... $ ./program > std.out 2> std.err Then in one terminal... $ tail -f std.out And in another tail -f std.err
Er. Forgot the prompt in my second example, but you get the idea.
http://www.aboutlinux.info/2006/01/inputoutput-redirection-made-simple-in.html http://www.linuxsa.org.au/tips/io-redirection.html
phillips13, I don't believe those links directly answer his question.
Thanks guys!! your commands worked fine (although I tried less +F over tail so I can scroll up :-D)
Join our real-time social learning platform and learn together with your friends!