On Dec 5, 2007, at 3:16 PM, Michael Pobega wrote:
tar cvvf foo.tar bar | ssh [EMAIL PROTECTED] "cat > foo.tar"

Or am I doing it wrong (I most likely am)? I've never done any sort of
piping through SSH before, so any sort of help would be appreciated.

You're close.  Try this:

tar cvvf - bar | ssh -e none [EMAIL PROTECTED] "cat >foo.tar"

Using - as the filename tells tar to output to stdout. "-e none" disables SSH's escape character, making the session fully transparent -- otherwise SSH will go into command mode if your tar output happens to contain a line that starts with ~.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to