|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
script to copy a file on multiple machines
Hi All,
I need to copy a startup file in /etc/rc2.d directory in approximately 70 sun workstations. I would like to write a korn shell script for this. Since /etc/rc2.d has write permissions only to root, I need to login as root. How do I login to a remote host within a script? Any help would be appreciated. thanks, Meena |
|
#2
|
|||
|
|||
|
Remote permissions or security policy may already be in your way. rcp is a security hole.
Investigate: Code:
rcp user_name@hostname:pathname/filename \
user_name@hostname2:pathname/filename
your company policy on remote access for rcp may be be a problem. You can use FTP, remsh or rlogin as well to do what you need. Chances are, because of security, that it may be easier to do this manually unless you will have to do this often. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > script to copy a file on multiple machines |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|