会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Loading
上官飞鸿
管理
2024年4月2日
shell实现UPS(断网自动关机)
摘要: #!/bin/bash destination_ip=192.168.2.1 if ! ping -c1 $destination_ip &>/dev/null then echo "$destination_ip is offline." shutdown fi ping 一个地址,如果不通,就关
阅读全文
posted @ 2024-04-02 20:32 上官飞鸿
阅读(306)
评论(0)
推荐(0)
公告