Placing a foreground process in the background

To run a foreground process as a background job:

1. Suspend the foreground process.

2. Enter the bg (background) command to move the process into the background.

For example:

   lpr -Pps23 part[1-8].ps
   ^Z
   Stopped
   bg
   [1]    lpr -Pps23 interface.ps &
   jobs
   [1]    Running              lpr -Pps7 interface.ps

This starts a foreground process to print several files. The process is then stopped and the job moved into the background. The state of this job is then checked.


[Home] [Search] [Index] This site maintained by bondaren@thsun1.jinr.ru