LAB 39: JOB CONTROL

 <  Day Day Up  >  

  1. At the command line type the following:

     mail <user>Press Ctrl-z 

    Now type:

     jobs 

    What is the number in the square brackets?

  2. Now type:

     sleep 300 jobs bg 

    What does bg do? What do the + and “ signs indicate ?

  3. Kill the mail job using job control.

  4. Go into the editor. Type ^Z to stop the job. Now bring the stopped vi job back into the foreground . What command did you type?

  5. Type the following command:

     jobs l 

    What is the output?

  6. What is the TMOUT variable used for?

  7. How much time was spent by the kernel when executing the following command:

     (sleep 5 ; ps eaf) 

 <  Day Day Up  >  


UNIX Shells by Example
UNIX Shells by Example (4th Edition)
ISBN: 013147572X
EAN: 2147483647
Year: 2004
Pages: 454
Authors: Ellie Quigley

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net