C system() equivalent method.
mario.torre at aicas.com
Thu Oct 15 06:50:48 PDT 2009
Il 15/10/2009 15:32, Frédéric Martini ha scritto:
> Sorry to revive this request, but I think this is as simple but very useful
> method that must be present on Java 7.
> No one have an opinion on this?
I'm not sure.
In my opinion this is easy to do in application code using something
similar to what you did or Runtime.exec, but doesn't fit into the core
Also, in this implementation you are assuming lots of things that are
not valid everywhere, like:
The system is either Windows or Linux or Solaris (or some other "sane"
unix variant), the system has /bin/sh, and it's possible to use it to
execute process etc...
I would not like much to see this in the standard library, especially in
java.lang, as this thing is non portable by definition.
Mario Torre, Software Developer, http://www.jroller.com/neugens/
aicas Allerton Interworks Computer Automated Systems GmbH
Haid-und-Neu-Straße 18 * D-76131 Karlsruhe * Germany
http://www.aicas.com * Tel: +49-721-663 968-44
pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF
Fingerprint: BA39 9666 94EC 8B73 27FA FC7C 4086 63E3 80F2 40CF
USt-Id: DE216375633, Handelsregister HRB 109481, AG Mannheim
Geschäftsführer: Dr. James J. Hunt
Please, support open standards:
More information about the core-libs-dev