From b80410982c9fad18c61c2722c8c7d02e4cf0465a Mon Sep 17 00:00:00 2001 From: Alessandro Battilani Date: Sun, 31 Jan 2021 17:32:32 +0100 Subject: [PATCH] ultime --- LoadCSVData.pl | 7 +------ UnitCsvReceiverSmart.pl | 7 ------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/LoadCSVData.pl b/LoadCSVData.pl index b1c07f4..cdd9e4f 100755 --- a/LoadCSVData.pl +++ b/LoadCSVData.pl @@ -46,10 +46,9 @@ my $matlab_func_dir = "/usr/local/matlab_func/"; my $matlab_error = ''; my $matlab_timeout = '1800'; my $email_addr = -'andrea.carri@aseltd.eu,alessandro.battilani@gmail.com,alessandro.valletta@aseltd.eu'; +'andrea.carri@aseltd.eu,edoardo.cavalca@aseltd.eu,alessandro.battilani@gmail.com,alessandro.valletta@aseltd.eu'; my $from = 'ASE Alert System'; my ( $email_msg, $email_obj ); -my $lock_elab = '/tmp/lock.loadcsvdata'; my $G201_fcheck = 0; my $D2W_fcheck = 0; my $FtpToCustomerCmd = 'SendFtpElabData.pl'; @@ -616,10 +615,6 @@ writeOutSql($tool); if ( $tooltype eq "GD" ) { print getTimeStamp("log") . " - pid $$ >> tool GD: nothing to do.\n"; } -elsif ( -e $lock_elab ) { - print getTimeStamp("log") - . " - pid $$ >> $unit - $tool MatLab calc not executed due to the lock: $lock_elab\n"; -} else { matlabCalc(); diff --git a/UnitCsvReceiverSmart.pl b/UnitCsvReceiverSmart.pl index cd36d9a..f16a32f 100644 --- a/UnitCsvReceiverSmart.pl +++ b/UnitCsvReceiverSmart.pl @@ -105,13 +105,6 @@ while ( my $line = $tail->GetLine() ) { . " >> Failed to create path: $outpath/SQL"; } - if ( !-d "$outpath/config" ) { - make_path "$outpath/config", - { mode => 0755, owner => $truser, group => $gid } - or warn getTimeStamp("log") - . " >> Failed to create path: $outpath/config"; - } - my $timestamp = getTimeStamp(); my $dest = $outpath . "/" . $filename . "_" . $timestamp . $suffix; if ( !move $trfile, $dest ) {