in reply to script to listen on a port & redirect to a file
You forgot the print.
Also, opening and closing the file for each line received is wasteful. Open the file before the loop.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: script to listen on a port & redirect to a file
by a31modela (Initiate) on Aug 14, 2015 at 18:58 UTC | |
by VinsWorldcom (Prior) on Aug 14, 2015 at 19:41 UTC |