Wow I didn't expect a response so fast.
So I tried it (copy and paste into terminal)
nothing
Then I tried sticking it in a text file (rightclick, new file, empty text file)
and running the file as sudo.
Nothing. Here's what I'm using.
while true; do
> [ `nmcli dev status |ttyUSB0|awk '{print $3'}` == "disconnected" ] && echo
"LOST CONNECTION!" || echo "STILL CONNECTED"
> sleep 60s
> done
I like that your script doesen't use ping to test connection.
So, um how do I put it into a clickable script?
__._,_.___
To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.
MARKETPLACE
.
__,_._,___
No comments:
Post a Comment