在远程主机10.162.134.203上是存在/home/scopsadm/scripts/changePassword/changePassword.sh脚本文件的:
[ibmadmin@usda5p-scop-mon01 ~]$ if ssh -i ~/.ssh/scopsadm_rsa scopsadm@10.162.134.203 test -e /home/scopsadm/scripts/changePassword/changePassword.sh; then echo Ok; else echo Bad; fi
Ok
在远程主机10.162.134.203上是不存在/home/scopsadm/scripts/changePassword/test.sh这个文件的:
[ibmadmin@usda5p-scop-mon01 ~]$ if ssh -i ~/.ssh/scopsadm_rsa scopsadm@10.162.134.203 test -e /home/scopsadm/scripts/changePassword/test.sh; then echo Ok; else echo Bad; fi
Bad
[ibmadmin@usda5p-scop-mon01 changePasswd]$
本文出自 “不积跬步,无以至千里” 博客,请务必保留此出处http://jiaxiaolei.blog.51cto.com/3117381/1948253
原文:http://jiaxiaolei.blog.51cto.com/3117381/1948253