Returning Values from Bash Scripts

Mike Meyer mwm at mired.org
Sun Jan 8 04:03:36 CET 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