News for hackers. Stuff that matters.
Re:Web server in one line of bash by anakron on Friday August 16, 2013 @12:22AM (#6222157)
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.
Re:Web server in one line of bash by gamegoblin on Friday August 16, 2013 @05:19AM (#6222963)
Is your while loop missing a "do" statement, or am I missing something?