Fast file transfer with netcat - Arkanis DevelopmentStuff about programming, technology, life… err… how about the universe?http://arkanis.de/weblog.xml2017-12-11T05:57:25+01:00Comment by ElusiveriteElusiveritehttp://arkanis.de/weblog/2009-05-22-fast-file-transfer-with-netcat#comment-2017-12-11-05-57-25-elusiverite2017-12-11T05:57:25+01:00
<p>That's about 2.3Gb in under 5 MINUTES??? WHOAAAA NELLY!!! nice!!!</p>
Comment by Thomas LeeThomas Leehttp://arkanis.de/weblog/2009-05-22-fast-file-transfer-with-netcat#comment-2014-07-11-19-15-34-thomas-lee2014-07-11T19:15:34+02:00
<p>Have been trying to transfer files between Mininet VMs. This post helped me to do that. Ran netcat on H1 and H2 in miniet and could successfully transfer files across S1.</p>
Comment by Timothy LeggTimothy Legghttp://arkanis.de/weblog/2009-05-22-fast-file-transfer-with-netcat#comment-2011-04-01-22-15-49-timothy-legg2011-04-01T22:15:49+02:00
<p>Thank you very much! Excellent page and terrific usage of the tee command.</p>
<p>I tested it in a slightly different way.</p>
<p>Source machine:</p>
<pre><code>netcat 192.168.10.170 1111 < test.txt</code></pre>
<p>Destination machine:</p>
<pre><code>netcat -l -w 2 1111 | tee >(md5sum > test.txt.md5) | cat > test.txt</code></pre>
<p>What this does:
• Source sends a file test.txt on port 1111
• Destination reads from port 1111 and will tee the output to md5sum > test.txt.md5 and cat > test.txt</p>
<p>The destination will have test.txt and test.txt.md5 residing on it's filesystem.</p>
<p>Tim Legg</p>