How can I use two (or more) 'rsync' commands in a single script without having to enter the password separately for each one?
Below is a shortened example of a shell script that I use to update files from my local computer to my web host. It works fine, except I have to enter the password separately for each of the 'rsync' commands. How can I modify this so I only have to enter the password once (or perhaps embed the password for each one within the script)? # update.blue rsync -avHp --progress /home/joe/mydata/upquick/ [email protected]:www/upquick/ rsync -avHp --progress /home/joe/mydata/zip/ [email protected]:www/zip/ rsync -avHp --progress /home/joe/mydata/av7/ [email protected]:www/av7/ --------------------------------------------------- PLUG-discuss mailing list - [email protected] To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
