Question: (P2.c image) Write a shell program named P5.sh with the same functionality as the main loop (only) in P2.c (i.e., loops for 80 seconds. Each

 (P2.c image) Write a shell program named P5.sh with the same

(P2.c image)

Write a shell program named P5.sh with the same functionality as the main loop (only) in P2.c (i.e., loops for 80 seconds. Each second echos "P2" on stdout) except it echos P5 instead of P2.

And copy P5.sh to P6.sh. Modify P6.sh so that it traps SIGINT and handles it by calling a function that prints "I don't think so". Thus P6.sh behaves like P2.c

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 Databases Questions!