Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
anakron
on Aug 16, 2013
|
parent
|
context
|
favorite
| on:
Web server in one line of bash
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
on Aug 16, 2013
[–]
Is your while loop missing a "do" statement, or am I missing something?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: