Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Efficiently executing a cron job on my webhosting server
- Date: Fri, 06 Jul 2007 16:46:22 -0700
- From: steven smith <sjs@example.com>
- Subject: Re: [tlug] Efficiently executing a cron job on my webhosting server
- References: <7d27112b0707052020h293cbf71se22c91761135d686@mail.gmail.com> <468ECC22.2010707@dcook.org>
- User-agent: Thunderbird 2.0.0.4 (Windows/20070604)
Darren Cook wrote:Also, I tried to simply access the PHP script directly (without wget), because some information I read said that it would be possible if "php was installed as a cgi". However, this doesn't seem to be true on my webhost (assuming I tried to access it in the right way).
Usually typing "php -v" at the commandline will tell you; if not found it means it is not installed. Not all web hosting services install the commandline version.
Also remember -- the environment is entirely different for a cron script. Only some of your environment will get exported by cron. One of the variables that will be different is your path. I sometimes run a cron command something like
printenv | mail me@example.com 2>&1
I'm not absolutely sure about the syntax above. 2>&1 causes standard error to be appended to standard out, but I always need to play with the syntax to get it right.
I can't even use cron at my current ISP. They view it as a security risk.
Steve S.
- Follow-Ups:
- Re: [tlug] Efficiently executing a cron job on my webhosting server
- From: Dave Gutteridge
- References:
- [tlug] Efficiently executing a cron job on my webhosting server
- From: Dave Gutteridge
- Re: [tlug] Efficiently executing a cron job on my webhosting server
- From: Darren Cook
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] [OT] Intel core duo errata
- Next by Date: [tlug] Geeky Sci-Fi
- Previous by thread: Re: [tlug] Efficiently executing a cron job on my webhosting server
- Next by thread: Re: [tlug] Efficiently executing a cron job on my webhosting server
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links