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 2cc75e7c65
commit 4159ecbe83
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ sub quote {
sub command_execution { sub command_execution {
my ($self, %options) = @_; 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 print $fh "set echo off
-- set heading off -- set heading off
set feedback off set feedback off