cx_oracle and commands
gaius hammond
gaius at gaius.org.uk
Fri Sep 5 09:26:04 EDT 2008
Hi all,
I am having a very strange problem with cx_Oracle, has anyone seen this kind of behavior before:
ActivePython 2.5.2.2 (ActiveState Software Inc.) based on
Python 2.5.2 (r252:60911, Mar 27 2008, 18:53:24) [C] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> from commands import getstatusoutput
>>> (status, output) = getstatusoutput('ls')
>>> status
0
>>> from cx_Oracle import connect, SYSDBA
>>> db = connect(mode=SYSDBA)
>>> (status, output) = getstatusoutput('ls')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/ASpy25/lib/python2.5/commands.py", line 55, in getstatusoutput
sts = pipe.close()
IOError: [Errno 10] No child processes
Basically, once I have made a connection to Oracle I can no longer use getstatusoutput(). This is a real problem as
I need to get a list of things to work on from Oracle then spawn commands to process them...
Thanks,
G
--
gaius at gaius.org.uk
http://www.gaius.org.uk/
"First things first, but not necessarily in that order" -- The
Doctor, "Doctor Who"
-------------------------------------------------
Visit Pipex Business: The homepage for UK Small Businesses
Go to http://www.pipex.co.uk/business-services
More information about the Python-list
mailing list