3.3

Table Of Contents
How to Check Process Status (ps Command)
101
If you have a persistently locked block, contact Avid.
How to Check Process Status (ps Command)
Occasionally, the support staff might ask you to run a few Linux commands to troubleshoot
problems. One of the most common would be a request to check on the status of a process
using the ps command.
NRCS-A$ ps -ef
The ps -ef command returns a list of all the processes currently running on the server. On
large systems there can be hundreds or even thousands of processes.
The process list gives useful information about each process including the process owner,
when it was started, on which terminal port it started, how much processor time has been
expended on the process, and so forth.
You can also use piping with the fgrep command to search the process list for a particular
process and check whether it is running. This example produces a full process list and then
filters it for the lines that contain the word, workserver:
NRCS-A$ ps -ef | fgrep workserver
When you use fgrep on the process list for a specific word, two processes are usually
returned in the display. One line is the process you are looking for, and one line is the fgrep
process that looked for that word.
If you know a particular process ID number, you can check to see if that process is running
or has completed:
ps -p <pid #>
If the process is still running, you will get a one-line process list for that number:
PID TTY TIME CMD
516 tablet 0:01 workserver
If it is not running, the command will simply return a header line like this:
PID TTY TIME CMD
You might also use ps -fp for a fuller listing.