Popen3-style os.execl?

Donn Cave donn at u.washington.edu
Tue May 18 17:28:15 EDT 2004


In article <m2d651v718.fsf at catbert.dok.org>, Chris Green <cmg at dok.org> 
wrote:

> Hey folks,
> 
> I'm whipping up a quick CGI to wrap a command line app and I was a bit
> suprised to not find a execl-like Popen3 style object.  I don't want
> to bother with the shell interpreting metacharaters by constructing a
> command line.
> 
> Basically, I want something that acts just like Popen3 but allows me
> to specify cmd as a path + args.  Does something like this exist in
> the standard library? If not, it sounds like a good candidate...

Did you try it?  I think of Popen3 as something that
acts just like you describe, but also accepts a command
line.  Not the best API, maybe.

   Donn Cave, donn at u.washington.edu



More information about the Python-list mailing list