input a password at each prompt
I am about to mass copy files from one server to another with rsync. It will be about 100 user accounts (below is just an example). I suck at shell code. But I am going to put this in a shell script to run. But the problem is after each line it will prompt for the server password. How can I automate this process? I know it would be insecure but it's just a one time thing to run.
rsync -trl --progress -e ssh /home/scott/Maildir/ scottm&172.16.0.58:/var/vmail/example.com/scott
rsync -trl --progress -e ssh /home/aaronp/Maildir/ scottm&172.16.0.58:/var/vmail/example.com/aaronp
rsync -trl --progress -e ssh /home/allen/Maildir/ scottm&172.16.0.58:/var/vmail/example.com/allen