concurrent telnet output processing

Smoot Carl-Mitchell smoot at tic.com
Thu Sep 5 06:07:55 UTC 2013


On Thu, 2013-09-05 at 05:14 +0000, thufir wrote:
> On Wed, 04 Sep 2013 21:57:14 -0700, Smoot Carl-Mitchell wrote:
> 
> > On Thu, 2013-09-05 at 03:39 +0000, thufir wrote:
> >> Is it possible to pipe a telnet client so that, concurrently, remote
> >> output is concurrently logged to a file and displayed on the terminal?
> > 
> > Try "script".  It saves a terminal session to a file.
> 
> it doesn't write to the file concurrently.  Most output doesn't show up 
> until you end the script.  That's the trick, to do it concurrently.  The 
> only way I could think of would be to use threads...

The "-f" flag flushes the output buffer after each write.

-- 
Smoot Carl-Mitchell
System/Network Architect
voice: +1 480 922-7313
cell: +1 602 421-9005
smoot at tic.com





More information about the ubuntu-users mailing list