[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Multiple SCP from remote machine

beth

3/21/2006 12:09:00 AM

I'm a nuby who needs help solving a problem trying to copy from
multiple remote servers

I need to ssh into a remote machine (Machine X). Once in Machine X I
need to SCP a file from machine Y. I'm not sure how to do this as it
seems that the process hangs while waiting for the first ssh to exit.
I've tried:

system("bash ./sample.sh " ) --(which uses a simple shell script to
execute the above described commands)

I've also tried `ssh user@10.10.0.1 `-- which hangs untill an exti is
entered.

Can anyone help?

Thanks in advance,

Beth

1 Answer

mdoughty

3/21/2006 1:13:00 AM

0

ssh -t host1 scp host2:/path /localpath

should work just fine.

--Matt
beth wrote:
> I'm a nuby who needs help solving a problem trying to copy from
> multiple remote servers
>
> I need to ssh into a remote machine (Machine X). Once in Machine X I
> need to SCP a file from machine Y. I'm not sure how to do this as it
> seems that the process hangs while waiting for the first ssh to exit.
> I've tried:
>
> system("bash ./sample.sh " ) --(which uses a simple shell script to
> execute the above described commands)
>
> I've also tried `ssh user@10.10.0.1 `-- which hangs untill an exti is
> entered.
>
> Can anyone help?
>
> Thanks in advance,
>
> Beth