Hi Dave,

On Mon, 10 Jun 2019, David Wynn wrote:

 ... I just don't think I've found the right module/subroutine that
 would be the one. I've looked in all your suggested places and
 nothing jumps out as the 'aha ..  let's test this' location.  I can
 find the spot in RSYNC.PM ( LN450 print("This is the rsync child
 about to exec $conf->{RsyncBackupPCPath}\n");
 $bpc->cmdExecOrEval($rsyncCmd); ) that appears in the log just
 before all the SSH DEBUG messages start appearing, but just can't
 follow who/where the command gets created that is sent by SSH once
 the authentication has completed.

Seems like it wouldn't hurt for you to brush up on 'grep' - it's one
of the most useful utilities on the planet, and indispensable for this
kind of thing.

Perl code tends to use 'Perl modules' a lot, anything that's called
'something.pm' is most likely a Perl module.  It's just a Perl script
which is written in a way that's intended to make it useful to a Perl
programmer like a C library is useful to a C programmer.  Perl modules
provide resources like subroutines.  They will most often be pulled in
to another Perl script very early in the script's code (it's common to
see a few 'use' statements at the top of a script) - something like:

use BackupPC::Lib;

which in this example, assuming that the paths are set up properly so
that Perl can find it, would pull in code from the Perl module in

.../lib/BackupPC/Lib.pm

You might want to look at 'sub cmdExecOrEval' which you should find in
.../lib/BackupPC/Lib.pm at around line 1152.

HTH

--

73,
Ged.


_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to