[ale] OT: ethernet port issues

Steve Litt slitt at troubleshooters.com
Sat Jul 24 17:25:45 EDT 2021


Steve Litt via Ale said on Sat, 24 Jul 2021 15:34:15 -0400


>The shellscript itself would look like the following:
>
>=====================================
>#!/bin/sh
>while /bin/true; do
>   ping -c1  192.168.0.14 > /dev/null \
>   || date  "+%Y-%m-%d@%H:%M:%S" > /var/log/mylog.log
>done
>=====================================

LOL, I forgot the sleep 10 command after the ping.

SteveT

Steve Litt 
Spring 2021 featured book: Troubleshooting Techniques of the Successful
Technologist http://www.troubleshooters.com/techniques


More information about the Ale mailing list