Multiple SCP from remote machine

B

beth

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 [email protected] `-- which hangs untill an exti is
entered.

Can anyone help?

Thanks in advance,

Beth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
DewittMill
Top