#!/bin/tcsh # demonstration of onintr onintr close while ( 1 ) echo "Program is running." sleep 2 end close: echo "End of program."