On Wed, 2006-08-09 at 16:59 +1000, David Gillies wrote:
> Gavin Carr wrote:
> > sed s/this/that/g file | ssh [EMAIL PROTECTED] 'cat > /home/someplace'
>
> Wouldn't that need to be:
>
> sed s/this/that/g file | ssh [EMAIL PROTECTED] 'cat - > /home/someplace'
Doesn't need to be. cat will just take
David Gillies wrote:
Wouldn't that need to be:
sed s/this/that/g file | ssh [EMAIL PROTECTED] 'cat - > /home/someplace'
^^^
Yes. Thanks Dave and Gavin. It's ssh I should use.
--
Michael Lake
Computational Research Support Unit
Science Faculty, UTS
P
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
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Gavin Carr wrote:
> On Wed, Aug 09, 2006 at 04:42:13PM +1000, Michael Lake wrote:
>> Hi all
>>
>> 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
On Wed, Aug 09, 2006 at 04:42:13PM +1000, Michael Lake wrote:
> Hi all
>
> 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 does
Hi all
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".
How can I do what I intend?