bash:пинг_с_датой

#!/bin/bash
while true
    do
        TIME=`date +%T`
        PING=`ping $1 -c 2 | grep icmp | grep seq=2`
            echo "[$TIME] $PING" >>/tmp/pingtime.log
            echo "[$TIME] $PING" 
  sleep 5
    done
  • bash/пинг_с_датой.txt
  • Последнее изменение: 2021/09/22 13:30
  • admin