Re: File Transfer thru stdin/out

From: CJ (hah@notonyerlife.com)
Date: 04/12/02


From: "CJ" <hah@notonyerlife.com>
Date: Fri, 12 Apr 2002 14:30:17 GMT


"Ralf Muschall" <ralf@tecont.de> wrote in message
news:84wuvd9z6z.fsf@tecont.de...
> 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.

CJ

--------------------------------------------------------------------------
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 127.0.0.1
H4x0R : ##Disconnected##
w33n3r: ##Disconnected##
l4m3rz: ##Disconnected##



Relevant Pages

  • Commonly Trojaned Linux services
    ... I'm writing a "watchdog" script to keep an eye on a remote server. ... I got 40 scrypts that can kill yer machine ... w33n3r: Yeah. ... sysop: ...
    (comp.os.linux.security)
  • Re: Website authentication??
    ... > I want to setup a section of my website that will require authentication ... I got 40 scrypts that can kill yer machine ... w33n3r: Yeah. ... sysop: ...
    (comp.os.linux.security)
  • Re: Unassigned ports
    ... if any services running on unassigned ports. ... I got 40 scrypts that can kill yer machine ... w33n3r: Yeah. ... sysop: ...
    (comp.os.linux.security)
  • Re: Unassigned ports
    ... > then it shows you which ports are open to the world. ... I got 40 scrypts that can kill yer machine ... w33n3r: Yeah. ... sysop: ...
    (comp.os.linux.security)
  • sshd identifies on telnet to port 22
    ... Everything works fine but whenever I telnet on port 22 on the machine, ... the sshd identifies with SSH-1.99-OpenSSH_3.1p1. ... w33n3r: Yeah. ... sysop: ...
    (comp.security.ssh)