Copy 2 files to multiple computers
Does anyone know a way to copy two files to multiple computers? I'm thinking of scp as the flavor of linux we're using does not include rdist.
I've read that scp can't copy multiple files, however maybe some scripting genius has figured out a way. Running two scripts (one for each file), is perfectly ok! If anyone care to post very clear examples (i'm definitely not a programmer...) of scripts, etc, that would be great. Thanks in advance to all those who can help! |
Why can't scp copy multiple files?
Code:
scp file1 file2 user@IP:/path/to/dest/ |
Wouldn't you need to put in a password for each remote computer?
|
Quote:
Yes, you would..unless you did a keyswap between the machines. In which case, no you wouldn't. A decent example with sample script is here: http://www.linuxjournal.com/article/8600 If you don't do keyswaps (something that will make a LOT of things easier in the future), you can always use expect to do this...and enjoy having user names/passwords hard-coded in a file for everyone to see. |
All times are GMT -5. The time now is 12:09 AM. |