sending files with netcat
Hi!
I want to send a file using netcat and when the transfer is complete, I want
the sender to exit netcat. Ho should I do that?
First I do
$netcat -l -p 2000 > outputfile
on the reciever computer and then I do
$cat file | netcat localhost 2000
I have to type Ctrl-C (on either of the machines) to complete the transfer.
How can I make netcat finish it's transfer when it's done without having to
do a Ctrl-C?
Thanks!
|