Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to be able to do the same thing the scheduler does on Windows with Linux.

Behavior on Windows: I open my browser, I go to and I login. I select the “remember me” checkbox so a cookie is added to the browser for me not to have to login. Then I add a task in the scheduler to open everyday so I have a connection per day for my rep not to drop below the 10 threshold to always be able to rate games, etc.

Since my computer isn't always up and running, I would like to do this on my Linux server. It only runs on command prompt on I doubt I would be able to use cookie and auto-login with Linux, link or others.

Is there anyway I can achieve this? Cron job seems to be unable to do this.

share|improve this question
Have you looked at using something like lynx or links? (Command line web browser) I know lynx supports cookies. You could manually log in once and 'remember me'. As long as there isn't a visual captcha. Then use cron to rerun it. – MrStatic Dec 27 '09 at 11:33
I keep receiving the : "To log into our site, it is required that cookies be enabled in your browser." error. I have set persistent cookie to true. – Dec 27 '09 at 13:04
up vote 2 down vote accepted

Cron alone cannot do anything except call other scripts; this is perfectly doable, it's just a matter of glueing together the right parts.

Depending on what you're comfortable with, you could do this with curl - if all you need to do is log in, just figure out where the login form action goes and use curl to do a POST to the right address with your username/password. The curl docs include a tutorial on using curl to emulate the actions of a web browser, which should give you everything you need to create a script that logs you in each day.

If you're more comfortable with python (or if you need to do more than just log in), Mechanize is touted as a good way to script interaction with websites, but I've not used it.

share|improve this answer

It sounds as if you may want to look at wwwoffle. It's available for all major Linux distros, and it can automatically download the content of specified web pages at a set time, for later viewing. It's also a caching web proxy that might make your bandwidth use more efficient.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .