3 ms·
Oh, you will be very disappointed. This is the script: #!/bin/sh result=$(ping -n -c 1 -W 1 1.1.1.1 | perl -lne '/icmp_seq=1.*time=([0-9.]+) ms/ and p
by kqr 2y ago
Oh, you will be very disappointed. This is the script:
#!/bin/sh
result=$(ping -n -c 1 -W 1 1.1.1.1 | perl -lne '/icmp_seq=1.*time=([0-9.]+) ms/ and print $1;')
if [ -z "$result" ]; then
echo "I: -- ms"
else
echo "I: $result ms"
fi
It runs as a shell script in my XMobar every second.
Sorry to hear about your storage dying on you.
- boneitis 2y ago> Oh, you will be very disappointed. Fat chance; you are my MVP today. Thank you and everyone else for chiming in!