473,385 Members | 1,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

problem in executing a file



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
1 1194
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: burn_hall | last post by:
Hi, I have a problem and can't figure it out and need your help, please look at the following code and the output also a xml file snippet is down there too. Looking at the output I don't know why...
1
by: Tanuki | last post by:
Hi: I have a problem regarding filenames in Visual C++. I would like to read from files using relative filenames instead of absolute filenames. I have tried using the following fname =...
2
by: Joseph Geretz | last post by:
I'm having a credentialing problem in my web application. Actually, I don't think this is an IIS security issue, since I'm able to access the page I'm requesting. However, the executing page itself...
1
by: svijay | last post by:
hi I have got a strange problem. May I know any solution for this. Here is the detailed description about the problem We have got a mainframe system and also production and development...
7
by: David R. | last post by:
Hello all, I would like to generate a Sql-Script-File and a Batch-File to execute the Batch-File over C#-Code and use the SQL-File as an Input-File for the command "osql" in the Batch-File. I...
102
by: hug | last post by:
www.webmaster, was suggested that this ng could be a better place.] I've updated my test server to handle if-modified-since. I've noticed that the (old copies I run of) IE and Netscape seem...
3
by: ^MisterJingo^ | last post by:
Hi all, I've got a very small app which I want to read an xml config file which is stored in the directory of the exe. To do this I am using the following line of code: XmlTextReader reader =...
1
by: Manish | last post by:
Hi friends, Iam new to this group. I have problem with executing the output(exe) file in an another system. I have created and compiled in a VS 2005 tool. when i run the exe file in a new system....
1
by: Manish | last post by:
Hi friends, Iam new to this group. I have problem with executing the output(exe) file in a new system. I have created and compiled in a VS 2005 tool. when i run the exe file in a new system. its...
19
by: foolsmart2005 | last post by:
I have written a snake game. There are 2 levels in the game(I finished 1st level). It can run in VC++ without problem but, when I run it on the dev C++ 4.9.9.2, it cannot run. I want to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.