Cool stuff you can do with netcat
41–44 of 44 posts
Re: Cool stuff you can do with netcat
#42Earlier quoted context omitted.
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.
> Schlepping files between computers. What about using rsync instead ?
Re: Cool stuff you can do with netcat
#43Re: Cool stuff you can do with netcat
#44Earlier quoted context omitted.
At $EMPLOYER, I have a script that takes a description of the network topology, converts it to a sequence of Host stanzas and writes them to ~/.ssh/config. The source file is simple enough that the sysad team can keep it up-to-date when they change the network configuration, and most people just have to run the 'update' script occasionally to have Super SSH Powers. It's quite popular.
Don't suppose you'd be willing to post this uber-script somewhere?