# Using wget to retrieve the list of remote users HOST="math.univ.fr" echo $HOST | awk '{ printf " . %-32s", $0 }' /usr/sbin/ping $HOST 1 > /dev/null if [ "$?" = "0" ] ; then echo " 8-)" wget -q -t 2 --connect-timeout=5 --read-timeout=10 \ -N http://$HOST/mail/$HOST.relay else echo " ;-(" fi # Using rsync to retrieve the list of remote users HOST="phys.univ.fr" echo $HOST | awk '{ printf " . %-32s", $0 }' /usr/sbin/ping $HOST 1 > /dev/null if [ "$?" = "0" ] ; then echo " 8-)" rsync -aq rsync://$HOST/mail/$HOST.relay . else echo " ;-(" fi