LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-28-2003, 12:14 PM   #1
ASP
LQ Newbie
 
Registered: Jul 2003
Location: Saskatchewan, Canada
Distribution: Redhat 9.0, Knoppix
Posts: 28

Rep: Reputation: 15
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.

 
Old 12-01-2003, 12:26 PM   #2
Jinkzer
LQ Newbie
 
Registered: Jun 2003
Location: Stockholm Sweden
Distribution: Gentoo, Slackaware, Flux, KDE
Posts: 20

Rep: Reputation: 0
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.
 
Old 12-01-2003, 08:30 PM   #3
ASP
LQ Newbie
 
Registered: Jul 2003
Location: Saskatchewan, Canada
Distribution: Redhat 9.0, Knoppix
Posts: 28

Original Poster
Rep: Reputation: 15
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
 
Old 12-02-2003, 01:49 AM   #4
Jinkzer
LQ Newbie
 
Registered: Jun 2003
Location: Stockholm Sweden
Distribution: Gentoo, Slackaware, Flux, KDE
Posts: 20

Rep: Reputation: 0
What kind of errors do you get when you run it from terminal?
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cron job working2hard Programming 6 07-28-2004 10:12 PM
problem in cron job setting gauravdream Linux - General 1 02-23-2004 01:08 AM
Setting up Domain Name Service within Redhat's Gui Interface coffee9876 Linux - Networking 1 12-12-2003 01:14 PM
need help setting up a cron job !! J.I.L. Linux - Software 1 10-19-2003 09:54 PM
cron job? luap Linux - Software 2 03-16-2003 09:48 AM


All times are GMT -5. The time now is 04:21 AM.

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