2013-06-13 Ramon Novoa <rnovoa@artica.es>
* pandora_agent: Merged from 4.0 branch. Quote the XML data file name before trying to send it. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8322 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
2cd487cd81
commit
237902d689
|
@ -1,3 +1,8 @@
|
|||
2013-06-13 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* pandora_agent: Merged from 4.0 branch. Quote the XML data file name
|
||||
before trying to send it.
|
||||
|
||||
2013-06-07 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* DEBIAN/make_deb_package.sh: Merged from 4.0 branch. Create the agent's
|
||||
|
|
|
@ -739,9 +739,9 @@ sub send_file {
|
|||
my $output;
|
||||
|
||||
if ($Conf{'transfer_mode'} eq 'tentacle') {
|
||||
$output = `tentacle_client -v -a $Conf{'server_ip'} -p $Conf{'server_port'} $Conf{'server_opts'} $file 2>&1 >$DevNull`;
|
||||
$output = `tentacle_client -v -a $Conf{'server_ip'} -p $Conf{'server_port'} $Conf{'server_opts'} "$file" 2>&1 >$DevNull`;
|
||||
} elsif ($Conf{'transfer_mode'} eq 'ssh') {
|
||||
$output = `scp -P $Conf{'server_port'} $file pandora@"$Conf{'server_ip'}:$Conf{'server_path'}" 2>&1 >$DevNull`;
|
||||
$output = `scp -P $Conf{'server_port'} "$file" pandora@"$Conf{'server_ip'}:$Conf{'server_path'}" 2>&1 >$DevNull`;
|
||||
} elsif ($Conf{'transfer_mode'} eq 'ftp') {
|
||||
my $base = basename ($file);
|
||||
my $dir = dirname ($file);
|
||||
|
@ -755,7 +755,7 @@ sub send_file {
|
|||
quit
|
||||
FEOF1`
|
||||
} elsif ($Conf{'transfer_mode'} eq 'local') {
|
||||
$output = `cp $file $Conf{'server_path'}/ 2>&1 >$DevNull`;
|
||||
$output = `cp "$file" "$Conf{'server_path'}/" 2>&1 >$DevNull`;
|
||||
}
|
||||
|
||||
# Get the errorlevel
|
||||
|
|
Loading…
Reference in New Issue