title: Monit for "cron-like" tasks
body: <p>Have some batch-type jobs that I would like to move from cron to Monit but am struggling to get them to work properly. These scripts typically run once a day, but on occasion have to be re-ran later in the day.  Goal is to take advantage of the monit &amp; m/monit front-ends to re-run as well as be alerted on failure in similar fashion to other things under monit.</p>
  
  <p>The below was my first attempt. I know the docs say to use range/wildcard for minute field but I have my monit daemon set to cycle every 20 seconds so thought I'd be able to get away with this.</p>
  
  <pre><code>check program test.sh
      with path "/usr/local/bin/test.sh"
      every "0 7 * * *"
      if status != 0 then alert
  </code></pre>
  
  <p>This does not seem to work as it seems like it picks up the exit status of the program on the NEXT run.  So I have a zombie process sitting around until 7am the next day, at which time I'll see the status from the previous day's run.</p>
  
  <p>Would be nice if this ran immediate or if there was a way to schedule something as "batch" that would only run once when started (either from command line or web gui).  Example below.</p>
  
  <pre><code>check program test.sh
      with path "/usr/local/bin/test.sh"
      mode batch
      if status != 0 then alert
  </code></pre>
  
  <p>Is it possible to do what I want?  Can a 'check program' be scheduled that will only run one time when started or using the 'every [cron]' type syntax supported by monit?</p>
  
  <p>TIA for any suggestions.</p>