ShellUtil class provides utility methods for executing shell commands.
ShellUtil
note: to enable this utility you need to go to system -> settings -> b2datacompiler and enable Unsafe utilities
exec(...command: string[]): Integer
Executes a shell command.
@paramcommand — A string array containing the program and its arguments.
command
@return — The exit value of the process represented by this Process object. By convention, the value 0 indicates normal termination.
ShellUtil.exec("program", "-firstArg", "-secondArg");
Last updated 10 months ago