How to - Run SQLPlus and script in Python ?
410266Jul 8 2010 — edited Jan 5 2011I want to have Python run command like this (on Windows) - and wait for completion
"sqlplus.exe myname/mypw@proddb @C:\Temp\test.sql"
commands module does not seem to work,
and subprocess module just launches sqlplus.
How have you done this ?
thanks
edit: I added the "r" pre-pend and this works: subprocess.call(r'sqlplus.exe myname/mypw@proddb @C:\Temp\test.sql', shell=False)