|
From: | Phil Townes |
Subject: | Re: Check Device status |
Date: | Mon, 29 Jul 2019 07:37:12 +0100 |
check file USB_Serial0 with path /dev/ttyUSB0
if not exist then alert
Is there a way to check if a device is available?For example checking if a USB Serial device shown in the system as /dev/ttyUSB0 is actively seen by the system?I have triedand# check for USB serial adaptor as USB0check filesystem USB_Serial0 path /dev/ttyUSB0if changed fsflags then alert# check for USB serial adaptor as USB0check filesystem USB_Serial0 path /dev/ttyUSB0if not exist then alertTony
[Prev in Thread] | Current Thread | [Next in Thread] |