You forgot the print.
Also, opening and closing the file for each line received is wasteful. Open the file before the loop.
In reply to Re: script to listen on a port & redirect to a file
by ikegami
in thread script to listen on a port & redirect to a file
by a31modela
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |