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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-28-2003, 11:14 AM
|
#1
|
LQ Newbie
Registered: Jul 2003
Location: Saskatchewan, Canada
Distribution: Redhat 9.0, Knoppix
Posts: 28
Rep:
|
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.
|
|
|
12-01-2003, 11:26 AM
|
#2
|
LQ Newbie
Registered: Jun 2003
Location: Stockholm Sweden
Distribution: Gentoo, Slackaware, Flux, KDE
Posts: 20
Rep:
|
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.
|
|
|
12-01-2003, 07:30 PM
|
#3
|
LQ Newbie
Registered: Jul 2003
Location: Saskatchewan, Canada
Distribution: Redhat 9.0, Knoppix
Posts: 28
Original Poster
Rep:
|
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
|
|
|
12-02-2003, 12:49 AM
|
#4
|
LQ Newbie
Registered: Jun 2003
Location: Stockholm Sweden
Distribution: Gentoo, Slackaware, Flux, KDE
Posts: 20
Rep:
|
What kind of errors do you get when you run it from terminal?
|
|
|
All times are GMT -5. The time now is 12:30 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|