Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Calling External (Perl)Script in Python

1,026 views
Skip to first unread message

Pervez Mulla

unread,
Aug 27, 2012, 2:20:01 AM8/27/12
to
Hi,

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

On shell I am able to display data. I wanna call that data on logfile , How can i do this .......?

I wanna call perl objects in python ... So , How can I pass all that stuff in python(firstname, lastname, username)....

Please help
Pervez

Ben Finney

unread,
Aug 27, 2012, 3:01:57 AM8/27/12
to
Pervez Mulla <mulla...@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
Message has been deleted
0 new messages