Re: [PHP] PHP script won't run in the background

2011-11-30 Thread Alain Williams
On Wed, Nov 30, 2011 at 01:01:48PM +0100, richard gray wrote: > >You need a bit more info, get a backtrace with 'where'. > Thanks for the response Alain - below is the output:- Ah, much more useful . > [rich@LeMans] (/Web/scripts)> gdb --pid=3294 > GNU gdb 6.3.50-20050815 (Apple version gdb-

Re: [PHP] PHP script won't run in the background

2011-11-30 Thread Alain Williams
On Wed, Nov 30, 2011 at 12:58:26PM +0100, richard gray wrote: > On 29/11/2011 17:16, Daniel Brown wrote: > >On Sat, Nov 19, 2011 at 09:33, richard gray wrote: > >This happens because PHP is writing to STDOUT, of course, and then the > >command line redirection grabs that information and puts it i

Re: [PHP] PHP script won't run in the background

2011-11-30 Thread richard gray
On 23/11/2011 18:49, Alain Williams wrote: On Wed, Nov 23, 2011 at 06:14:07PM +0100, richard gray wrote: Reading symbols for shared libraries + done 0x000101d057ee in __ioctl () Any clues? To me it looks like PHP cli is trying to do some I/O but I'm just a dumb developer... :) ioctl on a

Re: [PHP] PHP script won't run in the background

2011-11-30 Thread richard gray
On 29/11/2011 17:16, Daniel Brown wrote: On Sat, Nov 19, 2011 at 09:33, richard gray wrote: This happens because PHP is writing to STDOUT, of course, and then the command line redirection grabs that information and puts it into the file. Unfortunately, by itself, this won't work in the backgro

Re: [PHP] PHP script won't run in the background

2011-11-23 Thread Alain Williams
On Wed, Nov 23, 2011 at 06:14:07PM +0100, richard gray wrote: > Reading symbols for shared libraries + done > 0x000101d057ee in __ioctl () > > Any clues? To me it looks like PHP cli is trying to do some I/O but I'm > just a dumb developer... :) ioctl on a tty is typically used to set it int

Re: [PHP] PHP script won't run in the background

2011-11-23 Thread richard gray
On 23/11/2011 11:05, Laruence wrote: Hi: I mean, do you built your php with readline support, or do you load readline.so into PHP? if so, remove it, then try again. and you also can use: gdb --pid={the pid of the stopped php} then you will find where the php hangs. thanks I d

Re: [PHP] PHP script won't run in the background

2011-11-23 Thread Laruence
Hi: I mean, do you built your php with readline support, or do you load readline.so into PHP? if so, remove it, then try again. and you also can use: gdb --pid={the pid of the stopped php} then you will find where the php hangs. thanks On Wed, Nov 23, 2011 at 1:04 AM, richard gray

Re: [PHP] PHP script won't run in the background

2011-11-22 Thread richard gray
On 22/11/2011 05:51, Laruence wrote: did you run php with readline? try run the script without php-readline. thanks No - the script was just a basic string echo - no readline was involved. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP script won't run in the background

2011-11-21 Thread Laruence
On Sat, Nov 19, 2011 at 11:27 PM, richard gray wrote: > >> Laruence, while that may be a helpful answer to a few people in the know, I think a clue is better, leave some space for the people to dance. :) >> just replying back with a single line like that isn't really going to help >> the people w

Re: [PHP] PHP script won't run in the background

2011-11-21 Thread Richard Quadling
On 19 November 2011 14:33, richard gray wrote: > Hi all > > Hope someone can help me with a weird issue I have... > > I am trying to run a php CLI script in the background and it just won't run > - it has a status of Stopped SIGTOU (Trying to write output) - Here are the > details > > OS > Mac OS

Re: [PHP] PHP script won't run in the background

2011-11-19 Thread richard gray
Laruence, while that may be a helpful answer to a few people in the know, just replying back with a single line like that isn't really going to help the people who are having this problem. At least explain why you suggested that, or what it does for those on the list that don't know, especial

Re: [PHP] PHP script won't run in the background

2011-11-19 Thread richard gray
On 19/11/2011 16:09, Laruence wrote: $ stty -tostop makes no difference # stty -tostop # php -f test.php >test.log 2>&1 & # jobs # [1]+ Stopped(SIGTTOU)php -f test.php > test.log 2>&1 Any other ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

Re: [PHP] PHP script won't run in the background

2011-11-19 Thread Ashley Sheridan
On Sat, 2011-11-19 at 23:09 +0800, Laruence wrote: > $ stty -tostop > > thanks > > On Sat, Nov 19, 2011 at 10:33 PM, richard gray wrote: > > Hi all > > > > Hope someone can help me with a weird issue I have... > > > > I am trying to run a php CLI script in the background and it just won't run >

[PHP] PHP script won't run in the background

2011-11-19 Thread richard gray
Hi all Hope someone can help me with a weird issue I have... I am trying to run a php CLI script in the background and it just won't run - it has a status of Stopped SIGTOU (Trying to write output) - Here are the details OS Mac OS X Lion 10.7.2 PHP PHP 5.3.6 with Suhosin-Patch (cli) (built:

Re: [PHP] PHP script won't run in the background

2011-11-19 Thread Laruence
$ stty -tostop thanks On Sat, Nov 19, 2011 at 10:33 PM, richard gray wrote: > Hi all > > Hope someone can help me with a weird issue I have... > > I am trying to run a php CLI script in the background and it just won't run > - it has a status of Stopped SIGTOU (Trying to write output) - Here are