功能说明
shell脚本检测网络是否ping通
脚本命令
#! /bin/bashread -p "请输入IP:" ip ping -c 1 $ipif [ $? -eq 0 ]; thenecho "ping $ip success!"elseecho "ping $ip fail!"fi
调用
方式一:
时间:2024-07-17 05:05:01
shell脚本检测网络是否ping通
#! /bin/bashread -p "请输入IP:" ip ping -c 1 $ipif [ $? -eq 0 ]; thenecho "ping $ip success!"elseecho "ping $ip fail!"fi
方式一:
linux脚本ping如何自动退出 shell脚本自动检测网络掉线和自动重连
2020-04-07
linux 自动ping脚本 ping自动报警shell脚本forlinux
2021-04-22
linux ping监控脚本 Shell长ping脚本监控网络状态
2018-12-22