Problems with os.system and os.environ when calling Python from another program

Olav Benum OlavB at yahoo.com
Tue Sep 5 08:15:21 EDT 2000


I have a problem with some os.environ and os.system calls when i execute

a python-program from another program (ColdFusion server) under Windows
NT 4.0.

In the example below it will hang in the os.system call.

import os
print "excute.py"
os.system("dir")
print "execute.py done"

Any way around it?

I am thinking of somehow calling cmd.exe, and then calling my python-
script as a shell-command, but I haven't gotten that to work from
ColdFusion cfexecute.

Thanks!
Olav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20000905/e5a3683e/attachment.html>


More information about the Python-list mailing list