Unix Commands  «Prev  Next»

Trapping system signals - Exercise

The trap command

Objective: Observe a script that traps signals

Exercise scoring



This exercise is auto-scored and is worth 2 points.

Instructions



You will find a script called trapit in your UNIX directory. This script prints hello on the screen once every second. Run this script and then press CTRL+C several times to observe how it reacts. When you are finished, press CTRL + \ by holding down the Control key and pressing the backslash character to end the script.

Submitting your exercise

This exercise is auto-scored; when you complete the exercise, click the Submit button to receive full credit.