diff --git a/lib/perl/centreon/script/centcore.pm b/lib/perl/centreon/script/centcore.pm index 641e112c90f..fccadd12efc 100644 --- a/lib/perl/centreon/script/centcore.pm +++ b/lib/perl/centreon/script/centcore.pm @@ -1117,7 +1117,7 @@ sub run { if (-d $self->{cmdDir}) { opendir(my $dh, $self->{cmdDir}); while (my $file = readdir($dh)) { - if ($file ne "." && $file ne ".." && $file ne "" && $file !~ /.*_read$/) { + if ($file ne "." && $file ne ".." && $file ne "" && $file !~ /.*_read$/ && $file !~ /^\..*/) { if ($self->moveCmdFile($self->{cmdDir} . $file) && open(FILE, "< ". $self->{cmdDir} . $file . "_read")) { while (){ $self->parseRequest($_);