Message9249
os.system, unlike many other aspects of the os module should be portable, since it uses standard Java resources, namely java.lang.ProcessBuilder, and not the Java Native Runtime, which doesn't have support for HPUX.
Can you tell me what is reported by the following:
$ jython27 -c "import os; print os._name"
(where jython27 is whatever is used to executed your Jython command)
It should output posix; if not, that's an issue in terms of it figuring out its underlying OS.
Next step would to get this information:
import sys; sys.builtin_module_names
which on OS X reports the following:
('sys', 'gc', '_json', 'jffi', '_sre', '_threading', 'posix', 'exceptions', '_csv', 'time', '_imp', '_py_compile', 'zipimport', 'struct', 'thread', '_functools', '_jythonlib', 'ucnhash', 'bz2', 'synchronize', 'binascii', '_codecs', '_random', '_systemrestart', 'cmath', '_marshal', 'cStringIO', '_io', '_ast', 'operator', 'jarray', 'math', 'errno', '_collections', '_hashlib', '__builtin__', 'itertools', '_weakref', 'array', 'cPickle') |
|
Date |
User |
Action |
Args |
2014-12-18 14:48:38 | zyasoft | set | messageid: <1418914118.42.0.903750970704.issue2238@psf.upfronthosting.co.za> |
2014-12-18 14:48:38 | zyasoft | set | recipients:
+ zyasoft, shishir |
2014-12-18 14:48:38 | zyasoft | link | issue2238 messages |
2014-12-18 14:48:37 | zyasoft | create | |
|