Implementing Restart Ability For Shell Scripts


Shell Scripts are widely used in various systems, whether it be for system administration or performing ETL processing. Shell Scripts are mostly designed to perform specific capabilities that an administrator needs. For example, let’s say we have a monitoring script that loops through 200 Unix servers and gathers CPU/memory utilization, available mount points, and their available storage. Assume this script runs for 5 hours. During this 5 hours of execution time, the script could abort due to an error caused by various reasons. If the script aborts after having looped through 100 servers, we need to be able to restart