Message9249

Author zyasoft
Recipients shishir, zyasoft
Date 2014-12-18.14:48:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1418914118.42.0.903750970704.issue2238@psf.upfronthosting.co.za>
In-reply-to
Content
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')
History
Date User Action Args
2014-12-18 14:48:38zyasoftsetmessageid: <1418914118.42.0.903750970704.issue2238@psf.upfronthosting.co.za>
2014-12-18 14:48:38zyasoftsetrecipients: + zyasoft, shishir
2014-12-18 14:48:38zyasoftlinkissue2238 messages
2014-12-18 14:48:37zyasoftcreate