title: Shell script to monitor a folder daily basis, if new file is NOT GENERATED on that folder, Mail alerts will send
body: <p>Shell script to monitor a folder daily basis, if new file is NOT GENERATED on that folder,  Mail alerts will send</p>
  
  <pre><code>#!/bin/sh
  Value=`find &lt;Dirpath&gt; -type f -daystart -ctime 0 -print | wc -l`
  if [ $Value -gt 0 ]; then
          echo "File got generated"
  else
          echo "File not generated Sending mail"
          echo "&lt;Messages&gt;" | mail -s "&lt;Subject of mail&gt;" &lt;Mail_ID&gt;
  fi
  </code></pre>