Hacker News new | past | comments | ask | show | jobs | submit login

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.



Is your while loop missing a "do" statement, or am I missing something?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: