我正在尝试编写一个 shell 脚本来 ping 5 台主机,每 1 小时一次,如果它从这些主机中的任何一个收到任何故障,它会发送一封电子邮件警报,其中包含此失败 ping 的结果。
shell scripting ping
ping ×1
scripting ×1
shell ×1