|
From: Humbel O. <Otm...@bi...> - 2001-11-29 16:12:04
|
Hello Kevin, others. please let me give feedback how work is going on. System.getProperty( "os.name" ) returns "OS/400",=20 I therefore suggest we stick to platform =3D "os400" from now on ... On the positive side, I can type >>> import os >>> os.system( 'env' ) >>> os.system( 'java' ) and get the correct output. Open issues: 1. Process.getInputStream() is in a foreign encoding (EBCDIC I guess), so I have to decode it using a FilterInputStream. I made some exercises with Per Gummedal's lib/encodings/ebcdic.py file from the CPython implementation http://home.no.net/pgummeda but with no success. 2. The two commands above produce a different stream encoding, e.g.: env results in int value 37 for "\n", java results in int value 21 for "\n" Now I am searching for a way to handle that correctly. 3.=20 I cannot yet type=20 >>> os.system('java -version') meaning any command taking an argument (which is valid on the native shell) leads to a 'invalid option' error message. Still searching here. 4.=20 >>> os.system( 'echo hello' ) gives no output at all - difficult to pass os.__test() this way :-( Asking for a little more patience, Oti. |