Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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 recently switched my DSL ISP. The new ISP drops connections that are idle for 30 minutes. I have no problem with that, but I want to ensure my connection stays alive non-stop because I run a server. My router can deal with this -- it just logs back in as soon as the connection drops, but I'd rather not continually log back in as the solution. The ISP suggests I run a script to send one ping every 29 minutes. Cool.
This is probably dead simple, but I don't know how to do it. Can anyone suggest the script I need?
This question doesn't belong in the networking forum, but it's related to my previous question, so here goes ...
I set up my single ping cron job to look like this:
*/29 * * * * path-to-my-ping-script
It works fine, but runs the job at 0, 29, and 58 minutes past each hour. Is it possible to run a cron job every 29 minutes (not at discrete minutes each hour)? ie. I want it to run like this 0,29,58,27,56,25,54,23,52, and so on.
why are you so fussed about every 29 minutes? you just need to ensure network activitiy within a 30 minute period, so run the ping every 20 minutes.... */20 easy.
sir, this maybe 50% off topic, i hope you won't bash me.
noobie here, and i want to this on my PCLinuxOS box.
i need to ping my router (192.168.1.1), if it is unreachable, i need to lock the screen tru screen saver, and it won't unlock until ping returns successful.
note: screensaver will comeout repeatedly until ping is successful.
btw, im running a kiosk in this box, and want to block the screen after each time expires.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.