Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


Transfer file from server B to server C and running the script on server A


 
Thread Tools Search this Thread
# 1  
Transfer file from server B to server C and running the script on server A

I have 3 servers A, B, C and server B is having some files in /u01/soa/ directory, these files i want to copy to server C, and i want to run the script from server A.

Script(Server A) --> Files at Server B (Source server) --> Copy the files to Server C(Target Server).

We dont have RSA key encypted for SSH, can we do it without using RSA key. if not then please share the process to genrate the key and also the requested script.

Thanks in advance !
# 2  
What OS ?
Are r-commands available ( remsh, rsh, rcp, rlogin etc...) if so you would need a .rhosts file in the users home directory else you are left with generating keys...
There have quite a few threads on the subject lately, do a little search
# 4  
Here is an (untested) example of how to do it. Suppose I am on 10.0.0.1, and want to copy files from the /home/fpm/from directory on 10.0.0.2 to the /home/from/to directory on 10.0.0.3, I could issue the following command:
Code:
$ scp -r fpm@10.0.0.2:/home/fpm/from fpm@10.0.0.3:/home/fpm/to

The syntax is:
Code:
scp [[user@]from-host:]source-file [[user@]to-host:][destination-file]

# 5  
To avoid the files being sent twice over the network (from source to local, from local to target), I think it'd be better to login to either node and do the copy action from there.
 

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
File Transfer From one server to another server
Awadhesh Kumar
How to transfer a file from one sevrer to another server ? Please explain it with examples with all alternatives.... UNIX for Dummies Questions & Answers
4
UNIX for Dummies Questions & Answers
How to Append the output of a script running in remote server to a file in local server?
srkmish
Hi guys, So i am in server1 and i have to login to server 2, 3,4 and run some script there(logging script) and output its result. What i am doing is running the script in server2 and outputting it to a file in server 2 and then Scp'ing the file to server1. Similarly i am doing this for other...... Shell Programming and Scripting
5
Shell Programming and Scripting
File transfer from one server to another server in unix
easterraj
Hi, Can anyone help me. I am a new user in unix. I want to transfer (ftp) a file from one unix server to another server. Kindly help me. more details: server 1 file_name a.lst path: :/temp server 2 path : /develp/temp Thanks, Raj,... Shell Programming and Scripting
2
Shell Programming and Scripting
Transfer file from local unix server to remote server
indira
want to remove this thread. thanks... Shell Programming and Scripting
2
Shell Programming and Scripting
Transfer file from local unix server to remote server
indira
want to remove the thread thanks... HP-UX
2
HP-UX

Featured Tech Videos