发布网友 发布时间:2022-05-17 15:44
共1个回答
热心网友 时间:2023-10-27 15:22
#!/bin/bash ping -c 3 "remoteIP" if [ $? -eq 0 ] then exit 0 else ping -c 3 "remoteIP" if [ $? -eq 0 ] then exit 0 else ping -c 3 "remoteIP" if [ $? -eq 0 ] then exit 0 else /root/user/abc fi fi fi 把remoteip替换成你可以访问的...