On 13/03/12 16:02, ferreirafm wrote:
> Hi James, thank you for your replay. Indeed, the problem is qsub. And as
> warned by Robert, I don't have functions properly, but just scripts.
>
>
> --
> View this message in context:
> http://python.6.n6.nabble.com/concatenate-function-tp4574176p4574511.html
> Sent from the Python - python-list mailing list archive at Nabble.com.
It looks like you're not calling wait() on your subprocesses: you're
effectively launching a bunch of processes, then not waiting for them to
finish before you ask the next process to operate on the same file.
If you haven't given it a good look-over already, the subprocess
documentation [1] is worth taking a little time over.
[1]: http://docs.python.org/library/subprocess.html#popen-objects
James
--
http://mail.python.org/mailman/listinfo/python-list