Do you have idea about "Shell Job Control"?

Explain about Background and Foreground processes

Showing Answers 1 - 2 of 2 Answers

apiplani

  • Jan 2nd, 2006
 

Job control in Unix means controlling the execution of jobs. Using fg (foreground), bg(background), jobs, kill, nice etc.. you can actually control the priorities, order and the number of jobs which are being processed. The effective use of these commands is called Job control.

Manjunath Doddamani NSC Banagalore

  • Jan 25th, 2006
 

Job controlThe C shell handles job control, which allows the user to run certain programs in the background, and recall them to the foreground when necessary. In order to place a running process into the background, the suspend character must be set by the stty command shown earlier. Processes may be started in the background by following the command with an ampersand (&).When a job is placed in the background, information for the job is shown similar to the example given below: [1] 15934This specifies that the process has been placed in the background, and is job 1. In order to recall jobs placed in the background, the fg command is used, while the bg command places a recently stopped process into the background. The jobs command gives a list of all processes under control of the current shell. Also, typing a percent sign (%) with the job number brings that particular job to the foreground- Manjunath Doddamani NSC Banagalore

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions