Re: [PHP-INSTALL] Executing a python script from within perl

[email protected] (Anuj Bhatt)
Newsgroups php.general,php.install
Message-ID <1216790090.12282.13.camel@slackbot>
On Tue, 2008-07-22 at 23:27 -0400, Daniel Brown wrote:
>     Try this to see if your script is outputting any errors:
> 
> <?php
>     exec('/path/to/python your-script.py 2>&1',$ret);
>     print_r($ret);
> ?>

This worked, was opening a file for which permission was denied. Python
didn't show me anything, when run on the prompt, however when I used the
above method, I did get the error. Thanks!


-anuj
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.