BackupPC -- PingPath and PingCmd

by hymie   Last Updated February 13, 2018 14:00 PM

BackupPC has two configuration variables:

$Conf{PingPath} = '/bin/ping';
Full path to the ping command.

$Conf{PingCmd} = '$pingPath -c 1 $host';
Ping command. The following variables are substituted at run-time:
  $pingPath      path to ping ($Conf{PingPath})
  $host          host name

I'm just trying to understand why there are two separate variables. That is, what benefit does this setup provide as opposed to just a single variable

$Conf{PingCmd} = '/bin/ping -c 1 $host';
Tags : backuppc

Related Questions

BackupPc fails with SIGPIPE

Updated February 18, 2016 07:00 AM

can't exclude directories on backuppc

Updated January 05, 2018 15:00 PM

Unable to run cgi script

Updated March 25, 2017 13:00 PM

BackupPC files on NFS - web interface not working

Updated June 07, 2017 14:00 PM