Hi! This script (under Win-XP + P-2.4.1) : import subprocess p1=subprocess.Popen(r'cmd /cdir *.* /S /W /B', stdout=subprocess.PIPE) chaineretour=p1.stdout.read()
run OK if called from DOS-console. But, from another Python's script (by COM + exec) give me an error. Here, the traceback : Traceback (most recent call last): File "D:\dev\Python\ponx.py", line 4446, in PRun exec(ccod,globals(),globals()) File "C:\Python24\lib\subprocess.py", line 546, in __init__ (p2cread, p2cwrite, File "C:\Python24\lib\subprocess.py", line 606, in __get_handles__ p2cread = self._make_inheritable(p2cread) File "C:\Python24\lib\subprocess.py", line 647, in _make_inheritable DUPLICATE_SAME_ACCESS) error: (6, 'DuplicateHandle','Descripteur non valide') I know the bug-signaled : http://python.org/sf/1124861 But... a idea for a solution ? Thanks, and sorry for my bad english. Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list