Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 05-18-2003, 03:42 PM   #1
Registered: Apr 2003
Location: US, MA
Distribution: Nandu-0.ab, Arch 0.7.2
Posts: 229

Rep: Reputation: 30
Need Help in Writing a Shell Script.

Here's the deal. After 40 minutes of inactivity my ISP shuts off my internet connection. Would it be possible to create a shell script that would run in the background and do something like refresh a page every 30 minutes or so to keep my internet connection on.
Thanks in advance!
Old 05-18-2003, 03:49 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
Does a ping keep the connection alive?
ping > /dev/null
If not you could use
lynx -dump > /dev/null
Either line could be put as cron commands or you could put them in a script that you can enable which loops every 30 mins until you cancel it.
Old 05-19-2003, 06:44 AM   #3
Registered: Apr 2003
Location: US, MA
Distribution: Nandu-0.ab, Arch 0.7.2
Posts: 229

Original Poster
Rep: Reputation: 30



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Writing a shell script mattz40 Debian 5 04-13-2005 07:56 PM
writing a shell script tchoua Linux - General 8 02-24-2005 07:18 PM
shell script writing ust Linux - General 6 01-24-2005 02:06 PM
writing my first shell script speedhead34 Linux - Newbie 4 12-20-2004 01:50 AM
help writing shell script np complete Linux - Newbie 6 08-30-2004 10:43 PM

All times are GMT -5. The time now is 05:43 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration