by Hendrik Maryns <gtw37bn02@[EMAIL PROTECTED]
>
Apr 17, 2008 at 01:04 PM
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig1FA62457AF8EC5C9DD6285B0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
Daniel Pitts schreef:
> zamba wrote:
>> Hi. i'm running under solaris 10 ... and i have this problem:
>>
>> running an external aplication from command line in s.o works fine and=
>> no cpu consume.
>> running from java with runtime.exec the same sh it eats my 85% of cpu
>>
>> Runtime rt =3D Runtime.getRuntime();
>> try {
>> Process proc =3D rt.exec("/opt/ANTHaxfov42/bin/XSLCmd =
-
>> i /opt/
>> ANTHaxfov42/etc/XfoSettings.xml -d "+ full_xml_file + " -s " +
>> full_xsl_file + " -o " + full_pdf_file + " -silent");
>> } catch (IOException e) {
>> // TODO Auto-generated catch block
>> e.printStackTrace();
>> }
>>
>> any ideas ?
>>
>> tks !!!!!
> First, you'd be better off using ProcessBuilder.
> Second, are you sure the exact same command is run?
> Third, regardless of whether or not use use ProcessBuilder vs.=20
> rt.exec(), you *must* drain the InputStreams of the Process, or the=20
> Process may block unexpectedly.
Fourth, please use Java naming conventions: fullXmlFile etc.
H.
--=20
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
--------------enig1FA62457AF8EC5C9DD6285B0
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFIBy6ue+7xMGD3itQRAmyiAJ4p0HuRAiTJ23yIIedWseLnit9rJACeLZbu
5m7CPvSohIh/vhwW5hsPMrE=
=SFSB
-----END PGP SIGNATURE-----
--------------enig1FA62457AF8EC5C9DD6285B0--