controllo doppio x corra

This commit is contained in:
2017-09-22 23:07:16 +02:00
parent c4d6485fd8
commit c4b239d093

View File

@@ -90,8 +90,9 @@ while ( my $line = $tail->GetLine() ) {
chmod 0664, $dest; chmod 0664, $dest;
my @fname = ($dest); my @fname = ($dest);
chown $uid, $gid, @fname; chown $uid, $gid, @fname;
if ( $filename =~ m/^(\d\d_\d\d\d\d_|)(DT\d\d\d\d|LOC\d.*)$/i if ( $filename =~ m/^(\d\d_\d\d\d\d_|)(DT\d\d\d\d|LOC\d.*)$/i
and ( $unit ne 'ID9999' ) ) and ( $unit ne 'ID9999' )
and ( $truser ne 'corra' ) )
{ {
print getTimeStamp("log") print getTimeStamp("log")
. " >> Sender user $truser: load data into DB.\n"; . " >> Sender user $truser: load data into DB.\n";
@@ -106,7 +107,7 @@ while ( my $line = $tail->GetLine() ) {
); );
exit(0); exit(0);
} }
if ( $truser ne 'asega' and $truser ne 'corra' ) { if ( ( $truser ne 'asega' ) and ( $truser ne 'corra' ) ) {
print getTimeStamp("log") print getTimeStamp("log")
. " >> Sender user $truser: duplicate as asega user -> load data into DB.\n"; . " >> Sender user $truser: duplicate as asega user -> load data into DB.\n";
my $realtruser = $truser; my $realtruser = $truser;