Díky, to bude asi ono. Ale myslím si, že je problém v pythonu. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jan Jakubuv Sent: Thursday, August 23, 2007 2:20 PM To: Konference PyCZ Subject: Re: [python] subprocess
dobry den, co treba takto: prog=SUB.Popen(cmd, stderr=SUB.PIPE, stdout=SUB.PIPE) try: retval=prog.wait() except IOError, (errorno, strerror): from errno import ECHILD if errorno == ECHILD: pass retvat = prog.returncode h. 2007/8/23, Šponar Josef <[EMAIL PROTECTED]>: > > Ahoj, nevíte někdo jak odstranit tuto podivnost při používání > subprocess.wait(). > PYTHON = 2.4 > System = SunOS > > prog=SUB.Popen(cmd, stderr=SUB.PIPE, stdout=SUB.PIPE) > retval=prog.wait() > > Traceback (most recent call last): > File "av_rizeni.py", line 283, in ? > main() > File "av_rizeni.py", line 180, in main > retval=prog.wait() > File "/usr/local/lib/python2.4/subprocess.py", line 1007, in wait > pid, sts = os.waitpid(self.pid, 0) > OSError: [Errno 10] No child processes > _______________________________________________ > Python mailing list > Python@py.cz > http://www.py.cz/mailman/listinfo/python > > _______________________________________________ Python mailing list Python@py.cz http://www.py.cz/mailman/listinfo/python _______________________________________________ Python mailing list Python@py.cz http://www.py.cz/mailman/listinfo/python