Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

How to keep internet connection alive until a given time?

Writer Matthew Barrera

I want to keep my internet alive until a given time (say for example until midnight). This is so because the connection I have is based on a 3G HSPA+ connection and I want to wait until midnight to get better offpeak rates. However I want to keep the connection active until such time without disconnecting due to inactivity.

The only option I saw was to ping a random website such as periodically (say every 5 mins).

Are there any other methods ? Can you also provide the script/implementation details of the methods suggested by you ?

thanks

1 Answer

If you except no output, simply put ping into your cron with frequency set to 5 minutes.

Open cron file with crontab -e (in terminal)

and add new entry

*/5 17-23 * * * ping -c1

Where:

*/5 means every minute divisible by 5

17-23 hours

* every day of month

* every month

* every day of week

Save and you are done.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy