#! /bin/sh # Question 10: # Modify your answer to question 9 so that your program will take a list # of names in the form computer:destination on the command line, and # will make each location contain a copy of ~/public_html on the local # machine. For example, if the program is called rsync-to-websites, # then if it is executed like this: # $ rsync-to-websites ictlab:/var/www/html/mystuff \ # 172.19.64.50:/var/www/backup 172.19.64.51:/var/www/html # and if the local machine has a file /public html/important.html, then on the # computer ictlab, a file /var/www/html/mystuff/important.html will be created, # and on the computer 172.19.64.50, the file /var/www/backup/important.html # will be created, and on the computer 172.19.64.51, the file /var/www/html/ # important.html will be created. prog=$(basename $0) usage() { cat <