Re: [Tutor] os.waitpid non spawned pid

2008-06-20 Thread Martin Walsh
John [H2O] wrote: > Hello, I would like to write a script that would have a command line option > of a pid# (known ahead of time). Then I want my script to wait to execute > until the pid is finished. How do I accomplish this? > > I tried the following: > #!/usr/bin/env python > > import os > imp

[Tutor] os.waitpid non spawned pid

2008-06-20 Thread John [H2O]
Hello, I would like to write a script that would have a command line option of a pid# (known ahead of time). Then I want my script to wait to execute until the pid is finished. How do I accomplish this? I tried the following: #!/usr/bin/env python import os import sys def run_cmd(cmd): """RU