• I am new at scripting and need help developing a script that will look at a diff file size I've created from the original file and compare the size to the orignal and send a return code of 1 to the /etc/notify if the file is less than 6-% of its original size.
  • Basically:
  • If diff_file < 60% of original_file

  • send return code 1 to start paging.

  • else

  • send return code 0 to stop paging

To find the size of the file use ls with appropriate options.
To compare the sizes use test (or if)
To calculate 60% of orig size use expr.

Post code if there is something..