[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Running lynx from cron to run php script



what's hamweather?

----- Original Message ----- 
From: "Dan Kriwitsky" <list1@xxxxxxxxxxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Tuesday, December 10, 2002 12:52 PM
Subject: RE: [cobalt-users] Running lynx from cron to run php script


> > I want to use cron to run a script like the following.
> > 
> > 01,15,30,45 * * * * root TERM=xterm; export TERM; 
> > /usr/bin/lynx -dump 
> http://files.fmmetrocog.org/weather/weather.php > /dev/null 2>&1
> 
> 
> The other option would be, if you only need the forecast for 58104, to
> use http://www.arvidbux.nl/comments.php?id=P89_0_1_0 and grab
> http://www.srh.noaa.gov/data/forecasts/NDZ039.php?warncounty=NDC017&city
> =Fargo
> You then can include the .inc file in a .shtml or .php include in
> another page.
> 
> In my cron, I call it as:
> /usr/bin/wget http://www.sample.com/file.php > /dev/null 2>&1
> 
> I set up shell access just long enough to log in and set up a crontab
> for the user. (I simply upload a .txt file and then while I'm SSH'd in
> as that user I run crontab file.txt. Then the file gets included from
> www.sample.com/users/username/file.inc which is where it gets dumped by
> the script when it runs.
> 
> Or, you could also just install Hamweather and not have to leach the
> forecast from another site.
> -- 
> C2002 Dan Kriwitsky
> 
> Please reply to the list only. Off list replies are not read.
>  
> 
> 
> _____________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
> 
>