- echo "password" | sudo -S netstat -tlnp
- echo "123456" | sudo -S chmod 777 test
- echo "123456" | sudo -S /usr/bin/rsync -vzrtopg --progress --delete --password-file=/etc/rsyncd.secrets root@192.168.10.100::home /home/vmail
- sudo /usr/bin/rsync -vzrtopg --progress --delete --password-file=/etc/rsyncd.secrets root@192.168.10.100::home /home/vmail << EOF
- 123465
- EOF