8

Design optimizations when making external process calls

view full story
linux-howto

http://stackoverflow.com – I need from a java process to call external processes/scripts/cli commands. Since these calls will be quite a lot and some will return back the result of the process/script that run and others will just run it, I was wondering if: There is a standard design to build around Java's ProcessBuilder so that I don't have scattered in the code calls to ProcessBuilder constantly What optimizations can I do? For example would it make sense to read from files all the cli commands instead of keeping them e.g. as final String in the code? (HowTos)