First sys_check Run

The following example shows a first-time run of the script. Notice that the target directory (/root/checkit/checkout) is currently empty. After the first run, it has the baseline file in it. After the second run, it has a current file and a differences file, along with the baseline file:

 # ls /root/checkit/checkout # No baseline file # # ./sys_check #======================================================================== 1 ====COMMAND=======: # /bin/date 2>&1 #======================================================================== #1 Sat Nov 25 14:27:45 EST 2000 #======================================================================== 2 ====COMMAND=======: # /bin/date "+%Z" 2>&1 #======================================================================== ...

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.