Question
6. Can you run multiple versions of ./b.sh in the background? What happens to their output? 7. Can you execute a second instance of our
6. Can you run multiple versions of ./b.sh in the background? What happens to their output?
7. Can you execute a second instance of our shell from within our shell program (use './shell')? Which shell receives your input?
8. What happens if you type CTRL-C while the countdown script ./b.sh is running? What if ./b.sh is running in the backgroun
9. Can a shell kill itself? Can a shell within a shell kill the parent shell?
./shell
./shell
/bin/kill -s KILL NNN (Where NNN is the the parent's PID.)
10. What happens to background processes when you exit from the shell? Do they continue to run? Can you see them with the 'ps' command?
./shell
./b.sh&
exit ps
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started