摘要: 有时候,我们需要对远程服务器文件进行相关操作,在此之前我们需要校验远程服务器文件是否存在。 #! /bin/bash if ssh $1 test -e $2;then echo '0' else echo '1' fi 测试结果 [root@cchilei test]# sh fileExist. 阅读全文
posted @ 2020-10-16 10:33 cchilei 阅读(2017) 评论(0) 推荐(0) 编辑