[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [php-weathermap] Running from cron is helpfull ??
- From: Howard Jones <howie@xxxxxxxxxx>
- Subject: Re: [php-weathermap] Running from cron is helpfull ??
- Date: Wed, 01 Mar 2006 17:29:26 +0000
Colin Alston wrote:
So i recently got php weathermap and figured. Heck, be nice to run it from cron?Would be hey, except the code doesn't seem to take any care of the running directory. So weathermap either spews the image/index files in some random place, or the HTML is broken. I couldn't find anything in the docs to correct this.
*/5 * * * * (cd /your/weathermap/dir; ./weathermap --config blah.conf)works fine for me. For the IMG SRC, you can use the --image-uri option to correct that (*). Easiest is just to run it all in one place. Personally I prefer relative paths in the config file, because they aren't so long, and don't necessarily all break when I move a config to another system.
For what it's worth, if you use Cacti then 0.8 will run from the Cacti poller. I'm trying to remove any need to change the weathermap source, if anything.
Best Regards, Howard(*) which has mysteriously disappeared from the manual, but is definitely still there:
--image-uri whatever-you-want-to-appear-as-the-IMG-SRC
- References:
- Running from cron is helpfull ??
- From: Colin Alston
- Running from cron is helpfull ??
- Prev by Date: Re: [php-weathermap] Running from cron is helpfull ??
- Next by Date: RE: [php-weathermap] Running from cron is helpfull ??
- Previous by thread: Re: [php-weathermap] Running from cron is helpfull ??
- Next by thread: RE: [php-weathermap] Running from cron is helpfull ??
- Index(es):