Skip to main content
Package: com.phoenix_int.aserver.util Class Hierarchy

Declaration
This is a utility class for running processes. The class wraps the user’s desired process in a script that first switches to the desired directory.

Field Summary

Constructor Summary

Method Summary

Field Detail

DEFAULT_SHELL

See Also: Constant Field Values

Constructor Detail

PHXRuntime

Method Detail

setShell

Sets the shell to use when running commands (applies to UNIX only) Parameters:
  • shell - the shell to use. E.g. “csh”. If null is specified, then the command is issued directly without a shell

getShell

Returns the shell used to run programs

setJobListener

getJobListener

exec

Runs the specified command. The function first switches to the proper directory. Parameters:
  • cmd - the command to run
  • baseDir - the directory to run it in.
Throws:
  • java.io.IOException - thrown if the command cannot be executed

exec2

Runs the specified command. The function first switches to the proper directory. The PHXProcess which is returned has the ability to track the process and sub-processes in a somewhat platform independent way. Parameters:
  • cmd - the command to run
  • baseDir - the directory to run it in.
  • addErrorChecks - Whether to insert error checks after each command in multi-line commands.
Throws:
  • java.io.IOException - thrown if the command cannot be executed

main