Tuesday, October 11, 2011

[LINUX_Newbies] Re: Audible internet disconect sound?

 

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?

__._,_.___
Recent Activity:
To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.

.

__,_._,___

No comments:

Post a Comment