FourStar Software Documentation

The Observatories of the Carnegie Institution for Science (Carnegie Observatories), Pasadena, CA


Location of this document: http://instrumentation.obs.carnegiescience.edu/Software/FourStar/how.html



Web-Status Update

The FourStar status web-page is updated by a combination of of scripts started by a cron job on the ControlMac at Baade and scripts running on the webserver at SBS.

  • crontab at LCO:
      */10 * * * * sleep 10 ; ./fs_scp.csh &> /dev/null
    

  • fs_scp.csh
      #!/bin/csh -f
      set list = `ls /tmp/fs1?????????.dat`
      foreach file ( $list )
        if { scp $file instruments@xxx:FourStar/Datfiles/ } then
          rm -f $file
        endif
      end
      set list = `ls /tmp/fs1?????????.log`
      foreach file ( $list )
        if { scp $file instruments@xxx:FourStar/Logfiles/ } then
          rm -f $file
        endif
      end
    

  • crontab at SBS
      */10 * * * * sleep 30 ; cd $HOME/FourStar/Scripts ; ./create_status.csh > /dev/null
      */15 * * * * sleep 35 ; cd $HOME/FourStar/Scripts ; ./alarm.csh > /dev/null
      2    * * * * sleep 30 ; cd $HOME/FourStar/Scripts ; ./create_weekly.csh > /dev/null
      32 */2 * * * sleep 30 ; cd $HOME/FourStar/Scripts ; ./create_monthly.csh > /dev/null
      1    8 * * * cd $HOME/FourStar/Scripts ; ./cleanup.csh 14 > /dev/null
    

  • Scripts at SBS


    2009-04-08, Christoph C. Birk, Carnegie Observatories