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
spawn() works on QNX, fork() does not.
--
http://mail.python.org/mailman/listinfo/python-list
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
>>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
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
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
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
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