[Tutor] os.system() not working

Chris Down chris at chrisdown.name
Wed Aug 28 08:03:43 CEST 2013


Hello,

On 2013-08-27 16:03, Nitish Kunder wrote:
> I have a python program which i am calling from a php script.
> The arguments to the program is a path to the file
> The program when directly run from console executes normally.
> But when I try to execute the program from browser ie call the python
> script from php,
> os.system command is not working what might be the problem.

Your question is lacking some context, like Alan already mentioned, but my
first suspicions would be:

- Relying on a PATH that doesn't exist/is not as you expect in that environment
- Relying on a working directory that turns out to not be what you expected
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/tutor/attachments/20130828/33877d3f/attachment.sig>


More information about the Tutor mailing list