On Sun, 08 Jan 2006 08:57:01 GMT, Tim Roberts <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: >> >>How to execute bash scripts from python (other than using os.popen) and >>get the values that those bash scripts return. > > Why would you eliminate os.popen? It is precisely the right way to do > this. That's the same interface bash itself uses to execute scripts. > > That is, assuming by "values" you mean the stdout from the script. If you > really mean the numerical return code, you can use os.system.
And that's just one "value", of course. And not a very useful one, either -- it's a non-negative integer, with a pretty low max value -- 255 on my machine. Unless you count the crash return codes. /Jorgen -- // Jorgen Grahn <grahn@ Ph'nglui mglw'nafh Cthulhu \X/ snipabacken.dyndns.org> R'lyeh wgah'nagl fhtagn! -- http://mail.python.org/mailman/listinfo/python-list