Hi all

James helped me out and his suggestion of using ssh worked perfectly.
Thanks James.

James Polley wrote:
of coruse scp doesn't - would cp or rcp?
try something like this:

cat file | sed s/this/that/g | ssh [EMAIL PROTECTED] "cat - >
/home/someplace/somefile"



On 8/9/06, Michael Lake <[EMAIL PROTECTED]> wrote:
I am trying to do this:

cat file | sed s/this/that/g | scp - [EMAIL PROTECTED]:/home/someplace/

As I want to replace some strings in file and copy it to another server in
a Makefile
line. It looks like scp doesn't recognise - as "take input from its
stdin".

--
Michael Lake
Computational Research Support Unit
Science Faculty, UTS
Ph: 9514 2238



--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to