Re: File Transfer thru stdin/out

From: CJ (
Date: 04/12/02

From: "CJ" <>
Date: Fri, 12 Apr 2002 14:30:17 GMT

"Ralf Muschall" <> wrote in message
> In order to transfer a bunch of files without making the user wait
> for every single one, I use the following line in a shellscript
> (both sides are linuxen, so I can depend on gnutar understanding
> stuff like "-T -" and "-f -"):
> find . -maxdepth 1 -type f -name '*.foo' -mtime $maxage | tar cIf - -T - | ssh
david@${othermachine} 'tar xIf -'
> This worked flawlessly in a LAN setup (over ethernet) and ceased to
> work over phone (ISDN) (all other things like ssh-login and scp work
> in both directions). Is the method of piping data into ssh somehow
> timing dependent?
> I might try creating a local tar File, scp()ing that and untarring
> it on ${othermachine}, but this looks like voodoo to me and leaves
> garbage in the filesystem.
> PS: The SSH is OpenSSH 2.9 (which comes with Suse 7.2).
> Ralf
> --
> GS d->? s:++>+++ a C++++ UL+++ UH++ P++ L++ E+++ W- N++ o-- K- w--- !O M- V-
> PS+>++ PE Y+>++ PGP+ !t !5 !X !R !tv b+++ DI+++ D? G+ e++++ h+ r? y?

Try using rsync.


Year 2000 never bothered me.
It's year 65536 that I'm worried about
H4x0R : I'm way cooler than you! I got 40 scrypts that can kill yer machine
sysop : Heh! Yeah right!
w33n3r: Yeah. I can nail you from here man ... gimme your ip and you're toast!
l4m3rz: Yeah .. we rock .. we're gonna fry your machine
sysop : Ok, I dare ya ... My ip is
H4x0R : ##Disconnected##
w33n3r: ##Disconnected##
l4m3rz: ##Disconnected##