Re: php 5 upgrade and background script on unix
| From: | Jochem Maas | Date: | Tue, 03 Apr 2007 09:15:58 +0000 |
| Subject: | Re: php 5 upgrade and background script on unix | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-251965@lists.php.net to get a copy of this message | ||
Frederic Belleudy wrote:
> Jochem:
> won't it? what does it do? does it go into and endless loop and bring
> your machine to a halt
> by any chance? .. because by looking at it, as long as $in['bg'] is not
> set and not equal to
> true it's going to keep spawning sub-shells with cmdlines that call itself.
>
> Me:
> You haven't read my message?
yes I did.
> It works fine when Im running it from the
> shell
the question was referring to what happens when running the exec() line
via the apache php module, I had thought that that was obvious.
>
> When I do:
>
> `/usr/local/bin/php /www/admin.gammacash.com/test/test_fork.php bg=1
> 2>&1 /var/log/test.log &`
> you can see bg=1
>
> its the passing arguments!
> any other suggestions?
fix/debug it yourself.