[dev] redirecting standard error to another terminal
OMG I wish I had known this YEARS ago. I can redirect the standard error of a program to a different terminal! I am using X11 and dwm and st on Debian. For example:
ls --foobar 2> /dev/pts/0
I am excited by the possibilities and mad at myself for not having thought of doing this before.
When I am debugging a terminal program that use the whole screen (like a text editor running ncurses) it doesn't really work to have stderr information mixed in with the TUI. Problem solved! I can print debugging information to stderr. Or it would help with debugging something like dvtm.
Now that I think about it, redirecting stderr to a log file and looking at the log file with tail -f in another terminal would also achieve similar goal, I guess.
Received on Sat Jun 18 2022 - 15:03:27 CEST
This archive was generated by hypermail 2.3.0
: Sat Jun 18 2022 - 15:12:08 CEST