Calling External (Perl)Script in Python

Ben Finney ben+python at benfinney.id.au
Mon Aug 27 03:01:57 EDT 2012


Pervez Mulla <mullapervez at gmail.com> writes:

> I am trying to call perl script in my python view.py and store that
> data in logfile ....

To run external programs and connect to their standard streams, use the
‘subprocess’ module <URL:http://docs.python.org/library/subprocess.html>
from the Python standard library.

-- 
 \         “If we don't believe in freedom of expression for people we |
  `\           despise, we don't believe in it at all.” —Noam Chomsky, |
_o__)                                                       1992-11-25 |
Ben Finney



More information about the Python-list mailing list