IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40008


Ignore:
Timestamp:
Mar 24, 2017, 3:06:20 PM (9 years ago)
Author:
watersc1
Message:

Update to czarpoll to have it check to see if the output directory it
plans on writing to exists. If not, complain and die instead of
silently not making plots.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/czartool/czarpoll.pl

    r38258 r40008  
    4040
    4141# for now hardcode two databases. Later I'll look into handling a variable number
     42unless (-d $config->getGnuplotPath() . "/gpc1") {
     43    unless (mkdir($config->getGnuplotPath() . "/gpc1")) {
     44        die "Cannot create output directory " . $config->getGnuplotPath() . "/gpc1\n";
     45    }
     46}
     47unless (-d $config->getGnuplotPath() . "/gpc2") {
     48    unless (mkdir($config->getGnuplotPath() . "/gpc2")) {
     49        die "Cannot create output directory " . $config->getGnuplotPath() . "/gpc2\n";
     50    }
     51}
    4252my $plotter1 = czartool::Plotter->new_file($config, $gpc1Db, $config->getGnuplotPath() . "/gpc1", $save_temps);
    4353my $plotter2 = czartool::Plotter->new_file($config, $gpc2Db, $config->getGnuplotPath() . "/gpc2", $save_temps);
Note: See TracChangeset for help on using the changeset viewer.