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
   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 unixhelp@math.rutgers.edu
This page was last updated on September 05, 2006 at 10:30 am and is maintained by webmaster@math.rutgers.edu.
For questions regarding courses and/or special permission, please contact mclausen@math.rutgers.edu.
For questions or comments about this site, please contact help@math.rutgers.edu.
© 2012 Rutgers, The State University of New Jersey. All rights reserved.