Process Functions
processWait
Wait for processes not owned by this process to exit,
Usage
processWait processId [ --timeout seconds ] [ --signals signal ] [ --require ]
Wait for processes not owned by this process to exit, and send signals to terminate processes.
Arguments
processId- Integer. Required. Wait for process ID to exit.--timeout seconds- Integer. Optional. Wait for this long after sending a signals to see if a process exits. If not supplied waits 1 second after each signal, then waits forever.--signals signal- CommaDelimitedList. Optional. Send each signal to processes, in order.--require- Flag. Optional. Require all processes to be alive upon first invocation.
Return codes
0- Success1- Environment error2- Argument error
processMemoryUsage
Outputs value of resident memory used by a process, value
Usage
processMemoryUsage pid
Outputs value of resident memory used by a process, value is in kilobytes
Arguments
pid- Integer. Required. Process ID of running process
Examples
> processMemoryUsage 23
Sample Output
423
Return codes
0- Success2- Argument error
processVirtualMemoryAllocation
Outputs value of virtual memory allocated for a process, value
Usage
processVirtualMemoryAllocation [ --help ] [ pid ]
Outputs value of virtual memory allocated for a process, value is in kilobytes
Arguments
--help- Flag. Optional. Display this help.pid- Process ID of running process
Examples
processVirtualMemoryAllocation 23
Sample Output
423
Return codes
0- Success2- Argument error