Brian McGroarty wrote:
  >
  >Is there a way to pipe input to a file on a remote host via scp?
  >
  >i.e.
  >
  >tar cz ~user | scp ??? [EMAIL PROTECTED]:outfile.tgz

Not according to its manual page.  Try this:

  tar cz ~user | ssh [EMAIL PROTECTED] "cat >outfile.tgz"

(You put the remote command in quotes so that its redirection doesn't get 
handled
by your local shell.)

-- 
Oliver Elphick                                [EMAIL PROTECTED]
Isle of Wight                              http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47  6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "The earth is the LORD'S, and the fullness thereof; the
      world, and they that dwell therein."       Psalms 24:1


Reply via email to