Re: scp from stdin

2000-11-30 Thread Carel Fellinger
On Thu, Nov 30, 2000 at 09:40:37AM +, Justin B Rye wrote: ... > Well, try tempfile: > > $ tar cz ~user | ssh [EMAIL PROTECTED] \ > 'umask 077 && OUT=$(tempfile -d ~/ -p out -s .tgz) && cat >$OUT' Neat, finally a question simple enough for me to anwser and as a reward I get to learn some n

Re: scp from stdin

2000-11-30 Thread Justin B Rye
Carel Fellinger wrote: > On Tue, Nov 28, 2000 at 04:10:17PM -0600, 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 > > I think not directly, but you could try: > > $ tar cz ~user | s

Re: scp from stdin

2000-11-28 Thread Carel Fellinger
On Tue, Nov 28, 2000 at 04:10:17PM -0600, 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 I think not directly, but you could try: $ tar cz ~user | ssh [EMAIL PROTECTED] 'umask 077 &&

Re: scp from stdin

2000-11-28 Thread Oliver Elphick
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 comman

scp from stdin

2000-11-28 Thread Brian McGroarty
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