Hacker News new | ask | show | jobs
by runejuhl 4598 days ago
Something like this?

    ls -al | tee >(cat) | gzip -c
1 comments

...or you could run something like

    cat /proc/`pidof program`/fd/2
That, of course, won't eliminate the need for a second terminal.

(change to your needs, stdin==1, stdout==2, stderr=3)