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