Re: [asterisk-users] [Linux/Python 2.4.2] Forking Python doesn't work

2008-02-14 Thread Vincent
On Wed, 13 Feb 2008 22:26:16 -0500, Russell Bryant [EMAIL PROTECTED] wrote: The arguments to System() are a bit different. Put it in just like you would type at the command line. System(/tmp/netcid.py 2000 Joe) That did it :-) Thanks guys. BTW, for those interested, I didn't have to

Re: [asterisk-users] [Linux/Python 2.4.2] Forking Python doesn't work

2008-02-13 Thread Diego Aguirre
Vincent, try to use System() instead of AGI() Diego Aguirre Infodag - Informática FWD#: 459696 Nikotel#: 99 21 8138-2710 EnumLookup#: +55 21 8138-2710 DUNDi-br#: 21 8138-2710 Vincent escreveu: Hello When a call comes in, I'd like to fork a Python script that broadcasts a message so

Re: [asterisk-users] [Linux/Python 2.4.2] Forking Python doesn't work

2008-02-13 Thread Michiel van Baak
On 13:46, Wed 13 Feb 08, Vincent wrote: Hello When a call comes in, I'd like to fork a Python script that broadcasts a message so that users see the CID name + number pop up on their computer screen, and simultaneously ring their phones. The following script doesn't work as planned:

Re: [asterisk-users] [Linux/Python 2.4.2] Forking Python doesn't work

2008-02-13 Thread Vincent
On Wed, 13 Feb 2008 10:59:38 -0200, Diego Aguirre [EMAIL PROTECTED] wrote: try to use System() instead of AGI() Thanks, but no go. I get an error: [Feb 13 21:57:55] WARNING[2138]: app_system.c:107 system_exec_helper: Unable to execute '/tmp/netcid.py|2000|Joe'

Re: [asterisk-users] [Linux/Python 2.4.2] Forking Python doesn't work

2008-02-13 Thread Vincent
On Wed, 13 Feb 2008 14:25:52 +0100, Michiel van Baak [EMAIL PROTECTED] wrote: If you want it to detach the program from it's parent you need the double fork yes. Thanks for the confirmation, but when doing this, the NetCID application no longer pops up, regardless of whether I put the NetCID code

Re: [asterisk-users] [Linux/Python 2.4.2] Forking Python doesn't work

2008-02-13 Thread Russell Bryant
Vincent wrote: On Wed, 13 Feb 2008 10:59:38 -0200, Diego Aguirre [EMAIL PROTECTED] wrote: try to use System() instead of AGI() Thanks, but no go. I get an error: [Feb 13 21:57:55] WARNING[2138]: app_system.c:107 system_exec_helper: Unable to execute '/tmp/netcid.py|2000|Joe' The