Quote:
Originally Posted by
dentar
do you have ssh key auths on all 1000+ of these servers? or do you have to know the passwords?
do the files live on the same place on each?
thanks so much for your response.
ssh key auths is totally out of the question, for security reasons. The files do live in the same directory on all of the servers. An expect script is pretty much the only way that can accomplish what I need.
Pretty much what i need to do is this:
1. Log into a remote system
2. run a sudo command (which will obviously prompt me for a password)
3. the sudo command will change permissions of the files in the directory.
4. the sudo command will then copy the files in the directory to my home directory on that same remote system.
5. Log out of the system and repeat the same process for each server.