Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Possible Duplicate:
What is the easiest way to make your browser refresh a page every say, 5 seconds?
How can I run a web page in task scheduler every day?

Are there some ways to make the browser automatically do some operations (such as refresh the webpage every a few minutes) to avoid being idle?

My OS is Ubuntu 10.10 and browsers are Firefox and Chrome.

share|improve this question
1  
Why do you want to do this with a web browser, when you can just keep a terminal window open running a ping? –  user3463 Sep 10 '11 at 7:12
    
If you look at the earlier version of the question, M. West, you'll see that the questioner is trying to earn the equivalent of the "Enthusiast" badge on "some forums". As such, this question is a duplicate of "How can I run a web page in task scheduler every day?" where the questioner is trying to cheat the StackExchange system. –  JdeBP Sep 10 '11 at 10:58
add comment

marked as duplicate by JdeBP, random Sep 10 '11 at 14:40

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

There are addons for both Firefox and Chrome that does this.
Here are two examples, Firefox:ReloadEvery Crome:Page Refresh

But if you just want to keep a connection alive you could use this bash oneliner

while true; do wget -qO- http://www.google.com > /dev/null; sleep 300; done

or

while true; do curl -s http://www.google.com > /dev/null; sleep 300; done

it will download www.google.com every 300 seconds and throw away the result.

share|improve this answer
    
Thanks! Are the last two methods by wget and by curl able to make me login and keep me stay as such? –  Tim Sep 10 '11 at 13:56
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.