IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40431 for trunk


Ignore:
Timestamp:
May 15, 2018, 11:04:31 AM (8 years ago)
Author:
eugene
Message:

if NEB_SERVER is missing from the environment, report an error and exit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/ipp_filename.pl

    r32803 r40431  
    1010#print "$ENV{'PATH'}\n";
    1111#print "$ENV{'PERL5LIB'}\n";
     12#print "NEB_SERVER: $ENV{'NEB_SERVER'}<br>\n";
    1213
    13 # CZW: This is a horrible hack, but I don't want to have to debug all of ippMonitor to figure out why it's not working.
     14# EAM: check for missing NEB_SERVER and exit with an error
    1415unless (defined($ENV{'NEB_SERVER'})) {
    15     $ENV{'NEB_SERVER'} = 'http://nebserver.ipp.ifa.hawaii.edu:80/nebulous';
     16    print "NEB_SERVER not defined in ipp_filename.pl\n";
     17    exit (5);
    1618}
    17 
     19if ($ENV{'NEB_SERVER'} eq "") {
     20    print "NEB_SERVER not set in ipp_filename.pl\n";
     21    exit (6);
     22}
    1823
    1924use PS::IPP::Config;
     
    5257
    5358my $realname = $ipprc->file_resolve( $filename, $touch );
     59if (not defined $realname) {
     60    print "nebulous file $filename not found\n";
     61    exit (1);
     62}
     63
    5464print "$realname\n";
    5565
Note: See TracChangeset for help on using the changeset viewer.