|
From: Brian S. <br...@mb...> - 2001-01-30 00:51:51
|
I'm trying to issue commands to the underlying OS from jython 2.0 using
the commands module. (I apologize if I'm mixing up some terminology
here...I'm very new to Python) The catch is that the method 'popen'
seems to be missing. Here's a transcript of my session:
>>> import commands
>>> commands.getoutput('ls')
Traceback (innermost last):
File "<console>", line 1, in ?
File "/u/brian/apps/jython-20/Lib/commands.py", line 42, in getoutput
File "/u/brian/apps/jython-20/Lib/commands.py", line 51, in
getstatusoutput
AttributeError: class 'org.python.modules.os' has no attribute 'popen'
Is this a bug or am I missing something? If it's a bug does someone have
a workaround/fix?
Thanks in advance
-- B
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Brian Schlining
Research Technician
Monterey Bay Aquarium Research Institute
br...@mb...
(831) 775-1855
http://www.mbari.org/~brian
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|