DispersedNet
SiteMap
Unix Concepts
Shell Programming
Shell Scripting
Unix Questions
Unix Commands
«Prev
Next»
Shell Programming
Shell Processes
login Shell
Define Unix Process
Starting Other Shells
Parent Child Processes
3 Ways Shell Script
Specify Shell Script
Unix Path Variable
Shell Script Conclusion
Embedded Commands
Defining embedded Execution
Embedded Command Syntax
Application Embedded Execution
Date Command Options
forLoop Embedded Execution
insert Carriage Return
embedded Command Conclusion
Unix Commands
Find Command
wc Command
sort Command
read in Variables
Sleep Clear Commands
Grep Command
coption to grep
tee Command
Shell Script
Debugging Shell Scripts
Tracing Shell Scripts
Handling Errors
Printing Progress
Writing Shell Functions
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.