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
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