Loading

摘要: #!/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)