The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 01-21-2006
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
This script looks like it was written for sh/ksh/bash. If so, the syntax seems to be incorrect.

Code:
#Script to check for the backups of some particular Filesystems backup status
######## cat <one f ile > # hashed this out. you don't need this
while read line; do
mminfo -c gbo472b -t yesterday | grep $line
if [ $? -eq 0 ]; then
   echo "$FS was backed up "
else
   echo "$FS was not backed up"
fi
done < /path/to/file/with/filesystem_list

I have no idea what mminfo does, just fixed some syntax errors in the script.