Hi, Thanks for your answer. I had a look into the fcntl module and tried to unlock the output-file, but
>>> fcntl.lockf(x.stdout, fcntl.LOCK_UN) Traceback (most recent call last): File "<stdin>", line 1, in <module> IOError: [Errno 9] Bad file descriptor I wonder why it does work with the sys.stdin It's really a pity, it's the first time python does not work as expected. =/ Flushing the stdin did not help, too. Regards, -Justin -- http://mail.python.org/mailman/listinfo/python-list