[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Running lynx from cron to run php script
- Subject: Re: [cobalt-users] Running lynx from cron to run php script
- From: H2M Lists <lists@xxxxxxx>
- Date: Tue Dec 10 10:57:00 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
>> 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.
I am leaching from my own site running hamweather! I just need the output a
little different. I have edited the hamweather software already to fit my
needs but I still need to parse it with php.