On Thu, 5 Feb 2004, Andrew McNabb wrote:
> Anyway, I'd love to hear from all of you what you think the most
> essential or just downright cool shell hacks are that you've run across.

A modification of this:

tar cf - . |ssh remotehost "cd /targ/dir; tar xf -"

Is to use netcat:

remote$ nc -l -p 1337 | tar xf -
local$ tar cf - . | nc remote 1337

Which can be much faster on older machines.

                                                        -J


____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to