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 weeksh with a text editor.
You MUST make the script file weeksh executable.
Your script MUST use a #binbash or #binsh 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 Lab of the semester.
Fully comment the script where needed.
Your output will be to the screen ONLY!
Make sure the output is neat and use extra echo commands or echo e
etc. to
insert lines into the output for easier reading.
Use blank lines in the script for easier reading in the script as well.
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 seconds.
c The script will display your Parent Process ID
d The script will create a background process using sleep
e The script should show the current background jobs.
f The script must pause for 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 seconds then exit normally.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
