LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Selfhost Domain Service (Setting up a cron job) (https://www.linuxquestions.org/questions/linux-newbie-8/selfhost-domain-service-setting-up-a-cron-job-120743/)

ASP 11-28-2003 11:14 AM

Selfhost Domain Service (Setting up a cron job)
 
Ok, this should be an easy question.

I am trying to set up a cron job to request a specific web page every 2 minutes, to keep my selfhost domain refreshed.

I'm running RH9.

:newbie:

Jinkzer 12-01-2003 11:26 AM

If you just want to request the indexpage, this might help

crontab -e

add

*/2 * * * * wget -r www.yourdomain.com 1> /dev/null

the -r switch will write over the file every download, if you don't want to download the indexfile add the --spider switch.

try wget from a shell before to see that it's working.

ASP 12-01-2003 07:30 PM

Hmm
 
Thanks for the response, but that didn't work. The URL is quite a bit more complicated... (some parts modified for security reasons)

http://www.selfhost.com/xRemote.asp?...75892758924...

(a bunch more numbers)

If I try that with WGET I just get errors. Any other ideas?

ASP

Jinkzer 12-02-2003 12:49 AM

What kind of errors do you get when you run it from terminal?


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