Class jls.lang.Process

The class Process provides methods for performing input from the process, performing output to the process, waiting for the process to complete, checking the exit status of the process, and destroying (killing) the process.
Defined in: Process.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
jls.lang.Process(cmdArray, envp, dir)
Creates a process with the specified command and arguments with the specified environment and working directory.
Method Summary
Method Attributes Method Name and Description
 
Kills this process.
 
Detach this process.
 
Wait for this process to terminate and return the exit value.
Class Detail
jls.lang.Process(cmdArray, envp, dir)
Creates a process with the specified command and arguments with the specified environment and working directory.
Parameters:
{Array} cmdArray
Array of strings specifying the command-line arguments. The first argument is the name of the executable file.
{Array} envp
Array of key-values specifying the environment strings. If undefined, the new process inherits the environment of the parent process.
{jls.io.File} dir
The working directory of the subprocess, or undefined if the subprocess should inherit the working directory of the current process.
Method Detail
destroy()
Kills this process.

detach()
Detach this process.

waitFor()
Wait for this process to terminate and return the exit value.

Documentation generated by JsDoc Toolkit 2.3.2 on Sat Jan 08 2011 02:00:14 GMT+0100 (CET)