From: Ganesan R <rga...@my...> - 2002-01-24 03:39:04
|
>>>>> "jim" == jim boone <jim...@ba...> writes: > I need to execute commands on AIX, parse the output, and package the results > as a Java Bean. Since I am brand new to Python, I anxiously imported os and > tried to execute os.popen('command') and grab the output stream. However, > popen has not yet been implemented in jython! Given that big let down, does > anyone know how in the world can I execute a shell command and process the > resulting output stream from jython? Thanks in advance for your help! This was a big let down for me too. I saw a module called jnios but that doesn't seem to be maintained any more. I searched google for the reason and figured out that the reason for this is because Java does not support pipes. Wouldn't it be possible to emulate popen with Process.getRunTime().exec()? I guess there's a good reason why that's not done yet; I'd like to know the reason :-). Ganesan |