Web site counters - if [ $? -eq 0 ] ; then

if [ $? -eq 0 ] ; then echo “Sub-processes killed.” ; fi } SetTimer() { DEF_TOUT=${1:-10}; if [ $DEF_TOUT -ne 0 ] ; then sleep $DEF_TOUT && kill -s 14 $$ & CHPROCIDS=”$CHPROCIDS $!” TIMERPROC=$! fi } UnsetTimer() { kill $TIMERPROC } # main() trap AlarmHandler 14 SetTimer 15 $PROG & CHPROCIDS=”$CHPROCIDS $!” wait $! UnsetTimer echo “All Done.” exit 0 Sams Teach Yourself Shell Programming in 24 Hours Contents Index Hour 19: Dealing with Signals Previous Chapter Next Chapter Sections in this Chapter: How Are Signal Represented? Conclusion Dealing with Signals Questions Previous Section Next Section Copyright Macmillan Computer Publishing. All rights reserved.
From our experience, we can recommend PHP Web Hosting services, if you need affordable webhost to host and run your web application.

Leave a Reply