Re: popen in thread on QNX

2005-09-13 Thread Jacek Popławski
Laszlo, I can't reply your mails, your address doesn't work, please try jacekpoplawski-at-gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: popen in thread on QNX

2005-09-08 Thread [EMAIL PROTECTED]
spawn() works on QNX, fork() does not. -- http://mail.python.org/mailman/listinfo/python-list

Re: popen in thread on QNX

2005-09-08 Thread Jacek Popławski
Laszlo Zsolt Nagy wrote: > - one of your worker threads wants to run a command > - it creates the argument list and puts it into a message queue > - woker thread starts to sleep > - main thread processes the message queue -> it will run popen, put back > the file descriptors into the message and w

Re: popen in thread on QNX

2005-09-08 Thread Laszlo Zsolt Nagy
>>os.popen already creates a new process. So what if you try to call >>os.popen from your main thread, then pass the file descriptors to your >>thread? >>It is just an idea... >> >> > >But I need to run command from thread, that's the main reason to create >new thread :) > > Ok, but can't

Re: popen in thread on QNX

2005-09-08 Thread Jacek Popławski
Laszlo Zsolt Nagy wrote: > os.popen already creates a new process. So what if you try to call > os.popen from your main thread, then pass the file descriptors to your > thread? > It is just an idea... But I need to run command from thread, that's the main reason to create new thread :) -- http

Re: popen in thread on QNX

2005-09-08 Thread Laszlo Zsolt Nagy
Jacek Popławski wrote: >I am still in the process of creating my script which will run command >received from socket. >My scripts works perfectly on Linux, but doesn't work on QNX! > >File "/usr/lib/python2.4/popen2.py", line 108, in __init__ > self.pid = os.fork() >OSError: [Errno 89] Func

Re: popen in thread on QNX

2005-09-08 Thread Jacek Popławski
It works when I use os.system() instead os.popen3(), but with os.system() I have no access to stdout and stderr :-( -- http://mail.python.org/mailman/listinfo/python-list

popen in thread on QNX

2005-09-08 Thread Jacek Popławski
I am still in the process of creating my script which will run command received from socket. My scripts works perfectly on Linux, but doesn't work on QNX! File "/usr/lib/python2.4/popen2.py", line 108, in __init__ self.pid = os.fork() OSError: [Errno 89] Function not implemented When I t