Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #27963

Re: Calling External (Perl)Script in Python

From Ben Finney <ben+python@benfinney.id.au>
Newsgroups comp.lang.python
Subject Re: Calling External (Perl)Script in Python
References <fa5c51df-24dc-48a6-b3d6-777df211e5f6@googlegroups.com>
Date 2012-08-27 17:01 +1000
Message-ID <873938es2i.fsf@benfinney.id.au> (permalink)
Organization Unlimited download news at news.astraweb.com

Show all headers | View raw


Pervez Mulla <mullapervez@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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Calling External (Perl)Script in Python Pervez Mulla <mullapervez@gmail.com> - 2012-08-26 23:20 -0700
  Re: Calling External (Perl)Script in Python Ben Finney <ben+python@benfinney.id.au> - 2012-08-27 17:01 +1000
  Re: Calling External (Perl)Script in Python Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-08-27 11:05 -0400

csiph-web