ping 192.168.1.1 -c 10 | awk '{ print $0"\t" strftime("%Y-%m-%d %H:%M:%S",systime())}'

 

ping 打印添加时间戳

 

 

后台运行

nohup  ping 192.168.1.1 -c 10 | awk '{ print $0"\t" strftime("%Y-%m-%d %H:%M:%S",systime())}' > ping.txt

 

间隔200ms(-i 0.2), 打印时间戳(-D)

ping 192.168.1.1 -D -i 0.2 | awk '{ print $0"\t" strftime("%Y-%m-%d %H:%M:%S",systime())}'

 

ping 打印添加时间戳

 

相关文章:

  • 2021-08-24
  • 2022-03-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-07
  • 2021-05-07
  • 2022-12-23
猜你喜欢
  • 2021-12-02
  • 2022-12-23
  • 2021-09-10
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案