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] Function not implemented
>
>When I try to use os.popen3 - it works. But when I try to use it in new 
>thread - I see that error message.
>Do you see any solution?
>This script must work on QNX, command must be on thread, because I need 
>to stop it after timeout. I need popen to see stdout and stderr.
>Any ideas?
>  
>
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...

  Les

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to