By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,537 Members | 1,416 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,537 IT Pros & Developers. It's quick & easy.

problem in executing a file

P: n/a


Dear all,

I'm using python to manage a web-site. In particular, a user insert specific
parameters in a form and, then, I recover all parameters and run an executable
file according to the user parameters. The output is finally showed in a new
web-page.
The problem is when I need to run the executable file. I tried with:

import os
os.system("file.exe parameters")

but I received an error like "cmd.exe : permission deneided"

Probably I don't have the permission to execute the file. However, the server
administrator said me that he cannot give me the permission, but I can also use
ed execute files in my folder. so, is there a way to execute a file in my folder
using python and not the os module?

Thank you

Ernesto

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

Jul 13 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Ernesto:
import os
os.system("file.exe parameters")

but I received an error like "cmd.exe : permission deneided"

Probably I don't have the permission to execute the file. However, the server
administrator said me that he cannot give me the permission, but I can also use
ed execute files in my folder. so, is there a way to execute a file in my folder
using python and not the os module?
Try using os.exec* as they shouldn't need an intermediate copy of
cmd.exe to run your file.

Neil
Jul 13 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.