Re: Executing a python script from within perl
| From: | Anuj Bhatt | Date: | Wed, 23 Jul 2008 05:14:50 +0000 |
| Subject: | Re: Executing a python script from within perl | ||
| References: | 1 2 | Groups: | php.general php.install |
| Request: | Send a blank email to php-install+get-19194@lists.php.net to get a copy of this message | ||
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