Bash Scipting ping question
I need to right a script(bash preferably) which when ping returns Destination Host Unreachable it restarts my access point. My question is how do I know when ping returns Destination Host Unreachable? I know I can call the command but i dont know how to get the results. To restart the access point I need to open a browser, input my name and password into the popup window, click okay then in the browser, click advanced then apply then continue. How would I do this?
Thanks a lot!!!!
Conrad
|