Ignore:
Timestamp:
Oct 28, 2026, 9:32:30 AM (11 days ago)
Author:
stuerze
Message:

Some fixes from security point of view

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/scripts/compareSP3Plot.pl

    r11083 r11130  
    6666# for pdf generation
    6767my ($png, $page, $headline, $headline_text);
     68my @pngFiles;    # images to be deleted after inclusion in the PDF
    6869my $y0 = 190/mm;
    6970my ($x, $y, $width, $height) = (40/mm, $y0, 130/mm, 70/mm);
    … …  
    134135            my (@datasets_r, @datasets_a, @datasets_o); # init datasets
    135136            my $pngName_r   = sprintf ("%s_RADIAL_%s.png", $inputFilename, $key_sys);
     137            push @pngFiles, $pngName_r;
    136138            my $pngName_a   = sprintf ("%s_ALONG_%s.png", $inputFilename, $key_sys);
     139            push @pngFiles, $pngName_a;
    137140            my $pngName_o   = sprintf ("%s_OUT_%s.png", $inputFilename, $key_sys);
     141            push @pngFiles, $pngName_o;
    138142            my $chart_r = Chart::Gnuplot->new(
    139143                          output => $pngName_r, terminal => 'png', title => "Radial component",
    … …  
    231235            my (@datasets_c, @datasets_r); # init datasets
    232236            my $pngName_c  = sprintf ("%s_CLK_%s.png", $inputFilename, $key_sys);
     237            push @pngFiles, $pngName_c;
    233238            my $pngName_r  = sprintf ("%s_CLKRED_%s.png", $inputFilename, $key_sys);
     239            push @pngFiles, $pngName_r;
    234240            my $chart_c = Chart::Gnuplot->new(
    235241                          output => $pngName_c, terminal => 'png',title => "Clock only",
    … …  
    305311            my @datasets_s; # init datasets
    306312            my $pngName_s  = sprintf ("%s_SIS_%s.png", $inputFilename, $key_sys);
     313            push @pngFiles, $pngName_s;
    307314            # SIS contains the satellite offsets: y range from the data
    308315            my $maxAbs = 0.1;
    … …  
    342349    $pdf->save();
    343350    $pdf->end();
    344     system("rm *png");
     351    unlink @pngFiles;    # only the images written here
     352    @pngFiles = ();
    345353    #system("evince $inputDir/$pdf_name&");
    346354}
Note: See TracChangeset for help on using the changeset viewer.