IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 43


Ignore:
Timestamp:
Feb 14, 2003, 1:57:09 AM (23 years ago)
Author:
eugene
Message:

add CRUNID / cameraRun to status server

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/perl/src/mkrun

    r17 r43  
    166166    system ("mkrun sys camera.current $camera");
    167167    system ("mkrun sys runid.current $runid");
     168    system ("ssPut /e/state/$camera/cameraRun $runid COMMENT=\"valid current camera run ID (CRUNID)\" LIFETIME=90000");
     169    system ("ssPut /e/state/masterRun $runid COMMENT=\"master current camera run ID (CRUNID)\" LIFETIME=90000");
    168170    exit 0;
    169171}
     
    205207    $line = grab_runline ($ARGV[1]);
    206208    print STDOUT "$line\n";
    207     exit 0;
     209    if ($line eq "") {
     210        exit 1;
     211    } else {
     212        exit 0;
     213    }
    208214}
    209215
     
    223229        $mjd_start = date_to_mjd ($start);
    224230        $mjd_stop  = date_to_mjd ($stop);
    225         if (($mjd >= $mjd_start) && ($mjd <= $mjd_stop)) {
     231        if (($mjd >= $mjd_start) && ($mjd < $mjd_stop)) {
    226232            print STDOUT "$line\n";
    227233            exit 0;
     
    553559
    554560    ($year, $month, $day) = $date =~ /(\d+)\/(\d+)\/(\d+)/;
     561
    555562    $mjd = get_mjd ($year, $month, $day);
    556563
Note: See TracChangeset for help on using the changeset viewer.