nohup ping 192.168.2.1 -c 10 -i 20 | awk '{ print $0"\t" strftime("%H:%M:%S",systime()) } '>>ping.log 2>&1 & -c 次数 -i 间隔秒数