Is there a standard pl script that one uses to redirect a telnet stream to file, ie, I telnet to an ip on port 6666 and it just starts streaming lines and I wish to output each line to a file. If I telnet 1.2.3.4 6666 > /tmp/file , I don't get anything in /tmp/file until I kill the telnet, which is no good for me. I am a bit green in the socket in and out handling space.
Thanks