3 ms·
1. Schlepping files between computers. computer A: nc -l $ARBITRARY_PORT | tar vzxf - computer B: tar vzcf - files_or_directories | nc computer_a $A
by silentbicycle 16y ago
1. Schlepping files between computers.
computer A:
nc -l $ARBITRARY_PORT | tar vzxf -
computer B:
tar vzcf - files_or_directories | nc computer_a $ARBITRARY_PORT
2. Testing socket servers:
cat canned_request | nc server 80
There are probably other things, but I don't think, "Oh, this is a good use for netcat", I just do it. It's almost as handy as awk.
- wazoox 16y ago> Schlepping files between computers. What about using rsync instead ?
- silentbicycle 16y agonc is simple and I know its syntax. rsync is more powerful, but I need to look up its options half the time.
- wazoox 16y ago"rsync source host:destination" just works, no need for options :)