Date: Fri, 25 Jul 2003 09:06:01 +0300 From: Diomidis Spinellis <dds@aueb.gr> To: Kirk Strauser <kirk@strauser.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Network pipes Message-ID: <3F20C8C9.C760FC9A@aueb.gr> References: <3F1F96A5.A7D2D221@aueb.gr> <873cgvh9oe.fsf@pooh.honeypot.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Kirk Strauser wrote: > # ssh -f remotehost "nc -l -p 54321 | dd of=/dev/st0 bs=32k" > # tar cvf - / | nc remotehost 54321 > > Netcat implements a TCP/UDP transports and basically nothing else. Isn't > that what you're trying to achieve? You still have the overhead of two nc instances copying data and context switching. The same is also the problem with the "ssh -c none" approach. My original proposal would setup a direct socket connection from tar to dd. I think I can package the proposed sh changes as a separate command, following Luigi's suggestion. The syntax will not include a pipe symbol and layout, but the performance benefits will still be there. It will also be a lot more portable and also usable within any shell. Many thanks to all for your feedback. Diomidis - http://www.spinellis.gr
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F20C8C9.C760FC9A>