Define a SUFFIX arg with tempfile function and remove unused TEMPLATE

arg
This commit is contained in:
Jerome 2018-05-25 17:38:31 +02:00
parent 7c2174e16a
commit c6ce7f47f6
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ sub quote {
sub command_execution {
my ($self, %options) = @_;
my ($fh, $tempfile) = tempfile( DIR => $self->{option_results}->{tempdir}, TEMPLATE => "centreonOracle.".$self->{sid}.".XXXXXX", UNLINK => 1 );
my ($fh, $tempfile) = tempfile( DIR => $self->{option_results}->{tempdir}, SUFFIX => ".sql", UNLINK => 1 );
print $fh "set echo off
-- set heading off
set feedback off