Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux ping latency print on screen .sh file

ping -qc1 google.com 2>&1 | awk -F'/' 'END{ print (/^rtt/? "OK "$5" ms":"FAIL") }'
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #linux #ping #latency #print #screen #file
ADD COMMENT
Topic
Name
3+3 =