Question: Create a script called week 1 3 . sh with a text editor. 2 ) You MUST make the script file week 1 3 .

Create a script called week13.sh with a text editor.
2) You MUST make the script file week13.sh executable.
3) Your script MUST use a #!/bin/bash or #!/bin/sh as the first line of the script to
determine what shell is to be used to execute the script.
NOTE: If your script does NOT execute, check your PATH environment variable. It
should have been updated in Week 3 Lab 1 of the semester.
4) Fully comment the script where needed.
5) Your output will be to the screen ONLY!
6) Make sure the output is neat and use extra echo commands or echo -e
etc. to
insert lines into the output for easier reading.
7) Use blank lines in the script for easier reading in the script as well.
8) The script should perform, complete, and show the following information:
a. Your script will clear the screen and display your current processes.
b. The script will pause the screen for 10 seconds.
c. The script will display your Parent Process ID.
d. The script will create a background process using sleep 900.
e. The script should show the current background jobs.
f. The script must pause for 10 seconds.
g. The script will use the jobs -l command AND the cut command to obtain the PID
of the background job.
h. The script will use the information above to terminate that background job.
i. The script will display the current processes and see that the background job has
been terminated.
j. The script will pause for 10 seconds then exit normally.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!