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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.