Login    Forum    Register    Search    FAQ

Board index » HELP AND ADVICE » G33K'S CORNER




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Cron jobs
 Post Posted: Wed Nov 29, 2006 11:11 pm 
Offline
Who's ya Daddy???

Joined: Sat Jun 04, 2005 2:53 pm
Posts: 5928
I made a php file that fetches weather info from a METAR site.

I want it to run automatically every hour, so that it uploads data to my database.

On my website I got Cpanel, which enables me to run cron jobs, I just don't know how to go ahead.
What command do I need to issue to launch for instance "lynx" to that URL every hour?

Is there a better way to do it?

_________________
http://www.roysland.net/lastpost.html


Top 
 Profile  
 
 Post subject:
 Post Posted: Thu Nov 30, 2006 6:33 pm 
Offline
a norweigen silly curtain loving bitch
User avatar

Joined: Thu Mar 04, 2004 1:35 pm
Posts: 4977
Location: Kath
sounds about right :D

_________________
Image
UBER Admin
Follow it is I teh Diabetes man on TWITTER
http://twitter.com/tehdiabetesman


Top 
 Profile  
 
 Post subject:
 Post Posted: Thu Nov 30, 2006 6:36 pm 
Offline
A EWES dream sex machine
User avatar

Joined: Sun Mar 14, 2004 9:12 pm
Posts: 2000
Location: Team Killer....NOT !
yup, well done cow.

_________________
Image

Image

Catapultam habeo. Nisi pecuniam omnem mihi dabris, ad caput tuum saxum immane mittam.


Top 
 Profile  
 
 Post subject:
 Post Posted: Thu Nov 30, 2006 9:02 pm 
Offline
PFY wannabe
User avatar

Joined: Sun Jan 02, 2005 11:51 pm
Posts: 3295
Location: South, but not far south enough :/
use wget?

_________________
Image

"I wish my lawn was emo, so it would cut itself...."


Top 
 Profile  
 
 Post subject:
 Post Posted: Thu Nov 30, 2006 9:08 pm 
Offline
Who's ya Daddy???

Joined: Sat Jun 04, 2005 2:53 pm
Posts: 5928
lynx -dump http://wwwwwwww......

runs every 15 minutes, fetches weather data for my city and inserts into a database 8)

_________________
http://www.roysland.net/lastpost.html


Top 
 Profile  
 
 Post subject:
 Post Posted: Thu Nov 30, 2006 9:14 pm 
Offline
PFY wannabe
User avatar

Joined: Sun Jan 02, 2005 11:51 pm
Posts: 3295
Location: South, but not far south enough :/
N1 :D

_________________
Image

"I wish my lawn was emo, so it would cut itself...."


Top 
 Profile  
 
 Post subject:
 Post Posted: Sun Dec 03, 2006 9:23 pm 
do you have telnet? its easier to set up crontabs than with cpanel


Top 
  
 
 Post subject:
 Post Posted: Sun Dec 03, 2006 9:39 pm 
Offline
Who's ya Daddy???

Joined: Sat Jun 04, 2005 2:53 pm
Posts: 5928
yeah I have that, but it was easy as crap in cpanel too :lol:

_________________
http://www.roysland.net/lastpost.html


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 8 posts ] 

Board index » HELP AND ADVICE » G33K'S CORNER


Who is online

Users browsing this forum: No registered users and 8 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
  • Shoutbox
  • Shout Message


test
cron