4 ms·
We've used a similar trick to copy files between coworkers: on server: while true; nc -l $PORT < $FILE; done on client: nc $SERVER $PORT > $FILE Quick, si
by anakron 13y ago
We've used a similar trick to copy files between coworkers:
on server: while true; nc -l $PORT < $FILE; done
on client: nc $SERVER $PORT > $FILE
Quick, simple and easy to fire up. You can continue to hack on the file and nc will serve up the latest saved version.
- gamegoblin 13y agoIs your while loop missing a "do" statement, or am I missing something?