From 980477fdfde6300e578689a0efb161f3b3451923 Mon Sep 17 00:00:00 2001 From: battilo Date: Sun, 17 Sep 2017 22:00:39 +0200 Subject: [PATCH] tolto dbname x truser --- UnitCsvReceiverSmart.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/UnitCsvReceiverSmart.pl b/UnitCsvReceiverSmart.pl index 75efa9f..b7a3ba4 100644 --- a/UnitCsvReceiverSmart.pl +++ b/UnitCsvReceiverSmart.pl @@ -38,7 +38,6 @@ sub getUnitName { # parm => file received ($trfile) my $readingFile; my $recvOKstr = "OK UPLOAD"; my $ext = ".csv"; -my $dbname = "ase_mums"; GetOptions( "file=s" => \$readingFile ) or die("Error in command line arguments\n"); @@ -103,7 +102,7 @@ while ( my $line = $tail->GetLine() ) { exec( $scriptpath . "LoadCSVData.pl -f \"$dest\" -s \"$outpath/SQL/$filename" . "_" - . "$timestamp.sql\" -d $dbname >> /home/$truser/log/loadcsvdata.log 2>&1" + . "$timestamp.sql\" -d $truser >> /home/$truser/log/loadcsvdata.log 2>&1" ); exit(0); }