tolto dbname x truser
This commit is contained in:
@@ -38,7 +38,6 @@ sub getUnitName { # parm => file received ($trfile)
|
|||||||
my $readingFile;
|
my $readingFile;
|
||||||
my $recvOKstr = "OK UPLOAD";
|
my $recvOKstr = "OK UPLOAD";
|
||||||
my $ext = ".csv";
|
my $ext = ".csv";
|
||||||
my $dbname = "ase_mums";
|
|
||||||
|
|
||||||
GetOptions( "file=s" => \$readingFile )
|
GetOptions( "file=s" => \$readingFile )
|
||||||
or die("Error in command line arguments\n");
|
or die("Error in command line arguments\n");
|
||||||
@@ -103,7 +102,7 @@ while ( my $line = $tail->GetLine() ) {
|
|||||||
exec( $scriptpath
|
exec( $scriptpath
|
||||||
. "LoadCSVData.pl -f \"$dest\" -s \"$outpath/SQL/$filename"
|
. "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);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user