#!/bin/bash
#
# Loops and monitors observatory status for new image
# If it finds a new image it launches a python processing sequence

while :
  do

  if [ -f /usr/local/observatory/status/ccdnewimage ]
    then
      rm /usr/local/observatory/status/ccdnewimage
      /usr/local/bin/ccd_process.py
  fi
  
  sleep 1
    
done    
