1825810 Members
2467 Online
109688 Solutions
New Discussion

Multiple SCP Process

 
nskbalu
Occasional Contributor

Multiple SCP Process

Hi

We had script which push the files from one hpux to another hpux box throgh SCP Process.
As soon as it reach 11th connection, scp process failing to execute through unix pipe.

How do we make hpux to run as many SCP process in background?

Is there any config files needs to be changed?

Please do let me know
5 REPLIES 5
Charles H Emery
Advisor

Re: Multiple SCP Process

There are a few ways to do it.

Can you post the script so suggestions can be tuned to your script.

(I assume that you know that you can use "&" at the end of the scp command line in the script. You will want to redirect error content to a well named log, so that you can tell which ouput cam from which scp command.)
nskbalu
Occasional Contributor

Re: Multiple SCP Process

I did generate the SCP process files as below


nohup scp -rp username@server:directory &

like that 12 files. When i submit the same in to background, 10 process successfully executes, 11th and 12th process failed to run in background.

Is there any way to change the configuration file in HPUX to run as many scp process in background.
Charles H Emery
Advisor

Re: Multiple SCP Process

### Example:
scp file1 file2 file3 foo@svr1:/tmp >/tmp/scp_to_svr1.log 2>&1 &

scp file1 file2 file3 foo@svr2:/tmp >/tmp/scp_to_svr2.log 2>&1 &

scp file1 file2 file3 foo@svr3:/tmp >/tmp/scp_to_svr3.log 2>&1 &

###===================
Naturally this can be accomplished in some sort of loop. But you get the idea, yes?
nskbalu
Occasional Contributor

Re: Multiple SCP Process

Yes. I got it..

Thank you. :-)
nskbalu
Occasional Contributor

Re: Multiple SCP Process

I found idea.