How to return the Console's process code?
Submitted by Tuesday, 10 April, 2007 - 05:49
on
Hi,
I've been trying to write some simple beanshell code which calls some methods from the Console plugin. In one part of this code I'm calling the following method:
runInSystemShell(view, "latex " + file);
Now in examples like the above, the program (in this case "latex") returns a process or error level number when it finishes. If the program completes without errors, it returns 0. If it encounters an error it usually returns a non-zero process code. Is there a beanshell/Java command or Console method that will return this process code?? Unfortunately, the above method (runInSystemShell) doesn't return a value so I don't know what the process code is after it completes.
Any help appreciated. Thanks.
I've been trying to write some simple beanshell code which calls some methods from the Console plugin. In one part of this code I'm calling the following method:
runInSystemShell(view, "latex " + file);
Now in examples like the above, the program (in this case "latex") returns a process or error level number when it finishes. If the program completes without errors, it returns 0. If it encounters an error it usually returns a non-zero process code. Is there a beanshell/Java command or Console method that will return this process code?? Unfortunately, the above method (runInSystemShell) doesn't return a value so I don't know what the process code is after it completes.
Any help appreciated. Thanks.