Re: [Debian]:tar, ssh, pipes
On Mon, Jul 03, 2000 at 01:07:22AM +0200, Jens Benecke wrote:
> Warum funktioniert folgendes nicht?
>
> ( tar cf - . ) | ( ssh xxx.xx.xx.xxx ; cd $dir ; tar xf - )
\---------------/ \-----/ \------/
remote lokal lokal
stdin -> /bin/sh -> stdin = leer
tar cf - . | ssh xxx.xxx.xxx.xxx "cd $dir; tar xf -"
oder
tar cf - . | ssh xxx.xxx.xxx.xxx tar -C $dir -xf -
dann klappts auch mit der häßlichen Nachbarin
>
> Es gibt nur Fehlermeldungen à la
> -bash: 007702: command not found
> -bash: 5: command not found
........
logisch, weil /bin/sh die tar-pipe als Eingabe liest
irgendwie lustig ist folgende (funktionierende) Kommandozeile:
( echo "cd $dir; tar -xf -"; tar cf - . ) | ssh xxx.xxx.xxx.xxx
> -bash: ustar: command not found
> -bash: jens: command not found
> -bash: jens: command not found
>
--
Bernhard
------------------------------------------------
Um sich aus der Liste auszutragen schicken Sie
bitte eine E-Mail an majordomo@jfl.de die im Body
"unsubscribe debian-user-de <deine emailadresse>"
enthaelt.
Bei Problemen bitte eine Mail an: Jan.Otto@jfl.de
------------------------------------------------
Anzahl der eingetragenen Mitglieder: 736
Reply to: