Define a SUFFIX arg with tempfile function and remove unused TEMPLATE
arg
This commit is contained in:
parent
7c2174e16a
commit
c6ce7f47f6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue