700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > shell脚本:检测网络是否ping通

shell脚本:检测网络是否ping通

时间:2024-07-17 05:05:01

相关推荐

shell脚本:检测网络是否ping通

功能说明

shell脚本检测网络是否ping通

脚本命令

#! /bin/bashread -p "请输入IP:" ip ping -c 1 $ipif [ $? -eq 0 ]; thenecho "ping $ip success!"elseecho "ping $ip fail!"fi

调用

方式一:

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。