Re: Subprocess or Process or OMG!!

2006-05-19 Thread rh0dium
ROTFLMAO - Thanks --- I "meant" has anyone done the wrapper approach before!! Not has anyone used the code.. hahah nice!! subprocess also has the wait object. I think I like this better than popen2 (which I have used in the past) for a number of reasons but primarily it's simplicity. Having sai

Re: Subprocess or Process or OMG!!

2006-05-18 Thread blair . bethwaite
rh0dium wrote: > This has several problems - least of which args aren't working Has > anyone really tried this approach? No, they just wrote the code for the hell of it. :) Seriously though, you may want to consider using the popen2 module. Then you'll be able to wait on the subprocess to r

Re: Subprocess or Process or OMG!!

2006-05-18 Thread Robert Kern
rh0dium wrote: > Needless to say this is much more complex than what I was "hoping" for. > Has anyone solved this in a generic approach.. > > #!/usr/bin/env python > > import os,sys,string > import subprocess > > argc = len(sys.argv) > > # Yes I move all exe's to the .bin