3
I need to troubleshoot a telnet session and send save it's results to another person. When I use redirection I save the contents of my session, but I'm not able to see it on console.
How to pipe current terminal/program and still show it on current console.
When I use the command below I can save the program's output, but I'm not able to see it on console.
telnet ADDRESS PORT >> myoutputfile
I could use a telnet output option, I'm looking for a command independent way to do it.
The question is specific for a telnet session, but applies to any other command, including those that don't have a "save output to file option".
A small issue: the ^] sequence (scape character) doesn't work when using tee. – Rafael Borja – 2014-12-02T21:57:36.200
1That's probably because
telnet
makes that transformation in its output when it's writing tostdout
, which it isn't in this case. You could try appending| cat -v
to the command, but this will display lines only when there is a new-line in the output. – AFH – 2014-12-02T22:28:46.197