yum install -y rsync yum install -y expect chmod a+x 2.expect ./2.expect 本文转自 15816815732 51CTO博客,原文链接:http://blog.51cto.com/68686789/1843809