[scriptable, uuid(d573f1f3-fcdd-4dbe-980b-4ba79e6718dc)]
interface nsIProcess : nsISupports

Attributes

 The exit value of the process. This is only valid after the process has
 exited.
readonly attribute long exitValue
 Returns whether the process is currently running or not.
readonly attribute boolean isRunning
 Not implemented. Will be removed in a future version of this interface.
readonly attribute nsIFile location
 The process identifier of the currently running process. This will only
 be available after the process has started and may not be available on
 some platforms.
readonly attribute unsigned long pid
 Not implemented. Will be removed in a future version of this interface.
readonly attribute string processName
 Not implemented. Will be removed in a future version of this interface.
readonly attribute unsigned long processSignature

Methods

 Initialises the process with an executable to be run. Call the run method
 to run the executable.
 @param executable The executable to run.
void init(in nsIFile executable)
 Not implemented. Will be removed in a future version of this interface.
void initWithPid(in unsigned long pid)
 Kills the running process. After exiting the process will either have
 been killed or a failure will have been returned.
void kill()
 Executes the file this object was initialized with
 @param blocking   Whether to wait until the process terminates before
                       returning or not.
 @param args       An array of arguments to pass to the process in the
                   native character set.
 @param count      The length of the args array.
void run(in boolean blocking, [array, size_is(count)] in string args, in unsigned long count)