title: Continuously monitor a directory in linux and notify when a new file is available
body: <p>I'm a starter in Linux and scripting environment. My requirement is like this:</p>
  
  <ol>
  <li><p>From an asp.net application,  a file will be generated and copied
     to a predefined folder on a Linux server machine. (I'm assuming this
     can be done by remote file sharing using samba server)</p></li>
  <li><p>A service or script or whatever should be there in Linux machine
     to track continuously whether the file is available.</p></li>
  <li><p>Once a new file is available, just parse the file, extract some
     input variables and execute a shell script based on these
     parameters.</p></li>
  </ol>
  
  <p>My question lies in point no:2. --> How can I write a service or script which should execute continuously and monitor whether a file is available in a particular folder?</p>
  
  <p>I've searched a lot, got into a lot of links and I'm confused what is the <em>easiest</em> method to do this. Because I don't want to spend a lot of coding here as the script to be executed further and the asp.net app is more important and this should be a connector in between. </p>