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 21:30:15 -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> <468ED44E.6070309@sonic.net> <7d27112b0707062041g3a1b5c1fq9c68935278d277e1@mail.gmail.com>
- User-agent: Thunderbird 2.0.0.4 (Windows/20070604)
Dave Gutteridge wrote:...Nguyen, Darren, Steven,
Thanks for responding.
I'd like for it to not send me anything except error notification. Is that possible?
It depends on what your control panel will allow you to do. Probably errors get sent to stderr so to loose that you would redirect stderr to /dev/null. This is easy to do from crontab, but I don't know your control panel.
Also, I think this may be related, I want to make sure the PHP script cleans
up after itself and doesn't use up any memory or create any temp files that
stick around after it's done. I have a vague notion that a PHP script might
allocate resources when it runs, but I'm not totally sure if it always does
no matter what.
tmp files for something like php probably get cleaned up except during error exits. I assumed you had a command line inerface. You could run 'du' to check disk usage periodically to watch disk usage.Unless something very strange happens, the OS recovers any memory allocated to the process when the process exits. You may need to keep an eye out for tmp files, but I doubt it will be a problem. There may be some log files PHP keeps, but I don't know.
How can I be sure that my PHP script won't eat up memory?
- Follow-Ups:
- Re: [tlug] Efficiently executing a cron job on my webhosting server
- From: Josh Glover
- 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
- Re: [tlug] Efficiently executing a cron job on my webhosting server
- From: steven smith
- Re: [tlug] Efficiently executing a cron job on my webhosting server
- From: Dave Gutteridge
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Geeky Sci-Fi
- Next by Date: Re: [tlug] Switching from UIM to SCIM
- 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