DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Controlling processes

Finding out what jobs are running

To find out what jobs are running under your current shell, use the jobs(C) command, as follows:

   $ jobs
   [2] +  Running                 tar tv3 * &
   [1] -  Running                 find / -name README -print > logfile &
   $
A ``+'' in the second column signifies that the job has higher priority than a ``-''. The third column contains the state of the job; whether it is running, paused, waiting for input, or stopped. Finally, we see the command line that created the current job.

Use the -l option to jobs to display the PID after the job number. To limit the display to PID only, use the -p option.

   $ jobs -l
   [2] + 5236	 Running                 xrep *.s >bar &
   [1] - 5195	 Running                 checkmac *.s >foo&
   $ jobs -p
   5236
   5195
   $

Next topic: Killing a process
Previous topic: Waiting for background jobs to finish before proceeding

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003