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

Moving foreground jobs to the background

As we saw in ``Killing a process'', to move a foreground process to the background, press the suspend key. The process is suspended and a message is displayed, as follows:

   [1]  +  Stopped		sleep 30
To move a suspended job to the background, use the bg(C) command followed by a ``%'' symbol, then the PID, the job number, or the command name. For example, to move the suspended sleep process in the above example to the background, type the following:
   $ bg %sleep
The suspended process is then restarted in the background. A message is displayed indicating this, as follows:
   [1]    sleep 30&

Next topic: Keeping a process running after you log off
Previous topic: Moving background jobs to the foreground

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