hide random home http://www.fmi.uni-passau.de/archive/doc/unix/unixhelp/Unixhelp/shell_jobz3.2.html (Einblicke ins Internet, 10/1995)

Placing a foreground process in the background

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
   Stoppped
   bg
   [1]    lpr -Pps23 interface.ps &
   jobs
   [1]    Running              lpr -Ppsa 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.