How to run a dos executable from python
I have an executable (e.g. myprog.exe) which takes some set number of arguments. This command works ok: os.system(r"c:\tmp\myprog.exe arg1 arg2 arg3") The problem is that the path to the program and the arguments are variable at runtime so I need to pass them as arguments. Thanks -- http://mail.python.org/mailman/listinfo/python-list
Running a DOS exe file from python
I would like to execute a windows program from python and wait for it to finish before returning to the python script. The script I want to run has a set number of arguments. The following does work fine: os.system(r"c:\tmp\myprog.exe arg1 arg2 arg3") The problem I have is that the path to myprog.exe and the arguments are variable so I need to pass them in as arguments to myprog.exe. Thanks -- http://mail.python.org/mailman/listinfo/python-list
ODBC
I would like to connect to an Oracle database. In python version 2.1 I used the following code and it worked fine. When I run the code in version 2.4 it says that the odbc moduled does not exist. How do you connect to an Oracle database in v2.4? oradb=odbc.odbc('oracle/scott/tiger') stmt='select project_id from s_projects' cur=oradb.cursor() cur.execute(stmt) for rec in cur.fetchall(): print rec[0] cur.close() Thanks -- http://mail.python.org/mailman/listinfo/python-list
Re: Running a DOS exe file from python
I posted this earlier on yahoo groups and then realized that the most recent post was 2003. What I didn't realize is that it posted to this group so I posted it again. The other post is: http://groups.google.com/group/comp.lang.python/browse_thread/thread/6dc7c53dd00b99ed/da05733f4a83399f#da05733f4a83399f -- http://mail.python.org/mailman/listinfo/python-list
cx_Oracle entry point error
I downloaded cx_Oracle from http://www.cxtools.net/default.aspx?nav=cxorlb and selected the windows installer for Oracle 8i, Python 2.4 >From the readme.txt file: BINARY INSTALL: Place the file cx_Oracle.pyd or cx_Oracle.so anywhere on your Python path. So I tried this and set PYTHONPATH. I then created a script called ora_conn.py with one line: import cx_Oracle When I run the script (c:\python24\python.exe ora_conn.py) I get this error in a pop-up box: "The procedure entry point OCIEnvCreate could not be located in the dynamic link ligrary OCI.dll The bottom line of what I want to do is to connect to an oracle database without having to create an ODBC connection on the individual PC. Any ideas? Thanks. -- http://mail.python.org/mailman/listinfo/python-list