The sys_check Script

The following script is shown in a vi session with the number option set. (In a vi session, the last line-mode command, :set number, displays line numbers at the beginning of each line.) First, a few of the command-line options built into the sys_check script are used; then, several sample runs are shown after the script is introduced. The following example also provides some preliminary insight into the run of the script. The baseline file (and other files) will be stored in /root/checkit/checkout. The baseline file contains the output of the first effective run of the script. You will see that the script reacts differently if no baseline file exists (it creates it). I will provide commentary on many of the lines in the ...

Get Korn Shell Programming by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.