Returning Values from Bash Scripts

Mike Meyer mwm at mired.org
Sat Jan 7 22:03:36 EST 2006


chakkaradeepcc at gmail.com writes:

> How to execute bash scripts from python (other than using os.popen) and
> get the values that those bash scripts return.

The easy way is to call it with subprocess.call.

        <mike
-- 
Mike Meyer <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.



More information about the Python-list mailing list