Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'd like to write a perl or shell script to run as a cron job on a machine at a remote location (an ssh server that I need to access from time to time) that can test to see if its network connection is working, and if not, try to re-establish it by restarting networking, rebooting or something else.
What can my script do to determine if it is connected to the router, and if the router is connected to the internet?
Also, is there any kind of inexpensive device that will enable the computer to reboot a dsl modem/router (i.e. just turn it off & on again)?
mrclisdue,
Please don't put links in "Code:" blocks -- they can't be clicked. Also, you have "trashed" this thread w/ that "Code:" block so that many Konqueror users (& who knows who else) get a huge horizontal scroll, which makes this very difficult to read. As a result, some may not bother to read the OP; this will reduce the pool of helpers. I, for one, won't, until the horizontal scrolling is gone. Please, edit & fix this. Thanks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.