Question: Experiment with the exec command by writing two series of three shell scripts called: 1) a.sh, b.sh, c.sh 2) d.sh, e.sh, f.sh. Each shell from
Experiment with the exec command by writing two series of three shell scripts called:
1) "a.sh", "b.sh", "c.sh"
2) "d.sh", "e.sh", "f.sh".
Each shell from the first sequence will display its name, execute ps command, and then execute the next script in the sequence using exec co mmand (ex: exec b.sh in a.sh)
Each shell from the second sequence will display its name, execute ps command, and then execute the next script in the sequence by just calling its name (ex: e.sh in d.sh) Observe what happens when you start:
a.sh
d.sh
exec a.sh
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
