在远程主机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; fiBad[ibmadmin@usda5p-scop-mon01 changePasswd]$