Author |
Message |
3jorn
|
Post subject: Cron jobs Posted: Wed Nov 29, 2006 11:11 pm |
|
 |
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?
|
|
 |
|
 |
wowyouareacow=GCHQ=
|
Post subject: Posted: Thu Nov 30, 2006 6:33 pm |
|
 |
a norweigen silly curtain loving bitch |
 |
Joined: Thu Mar 04, 2004 1:35 pm Posts: 4977 Location: Kath
|
|
 |
|
 |
Magoo=GCHQ=
|
Post subject: Posted: Thu Nov 30, 2006 6:36 pm |
|
 |
A EWES dream sex machine |
 |
Joined: Sun Mar 14, 2004 9:12 pm Posts: 2000 Location: Team Killer....NOT !
|
yup, well done cow.
_________________
Catapultam habeo. Nisi pecuniam omnem mihi dabris, ad caput tuum saxum immane mittam.
|
|
 |
|
 |
Arma
|
Post subject: Posted: Thu Nov 30, 2006 9:02 pm |
|
 |
PFY wannabe |
 |
Joined: Sun Jan 02, 2005 11:51 pm Posts: 3295 Location: South, but not far south enough :/
|
use wget?
_________________
"I wish my lawn was emo, so it would cut itself...."
|
|
 |
|
 |
3jorn
|
Post subject: Posted: Thu Nov 30, 2006 9:08 pm |
|
 |
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 
|
|
 |
|
 |
Arma
|
Post subject: Posted: Thu Nov 30, 2006 9:14 pm |
|
 |
PFY wannabe |
 |
Joined: Sun Jan 02, 2005 11:51 pm Posts: 3295 Location: South, but not far south enough :/
|
N1 
_________________
"I wish my lawn was emo, so it would cut itself...."
|
|
 |
|
 |
The Knifing King™
|
Post subject: Posted: Sun Dec 03, 2006 9:23 pm |
|
|
do you have telnet? its easier to set up crontabs than with cpanel
|
|
 |
|
 |
3jorn
|
Post subject: Posted: Sun Dec 03, 2006 9:39 pm |
|
 |
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 
|
|
 |
|
 |
|