Slashdot Mirror


User: lazynothin

lazynothin's activity in the archive.

Stories
0
Comments
1
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 1

  1. How about, P2P In 2 Lines of... on P2P In 15 Lines of Code · · Score: 1
    commands?

    Hello people, remember a little command called 'nc'?

    receiving end: nc -p <ListenPort> -l > <FileReceived>
    sending end: nc <IPofReceivingEnd> <ListenPort> < <FileToSend>

    If you're thinking, "the python and perl scripts do much more"... I'm sure you could be creative in your shell scripting to accomplish the same thing using 'nc'. I have, and it works smooth as butter every time. The reason I bring NetCat into the discussion is not to shy folks away from these python and perl scripts. Truth be told, you will benefit in many more ways with the two interpreters vs 'nc'. However, 'nc' is such a small footprint. By using 'nc' you don't have to worry about python or perl being installed. Just a single loney powerful binary file called "nc".