Hello,
> 
> My conclusion would be that $Conf{WakeupSchedule} somehow _is_ defined, but
> empty. That's why I wanted that debug statement in the real perl script.
I'm puzzled : adding  the code you suggested in your previous mail leads to the 
following error :
2007-10-15 16:51:44 Running BackupPC_trashClean (pid=17272)
Can't use an undefined value as an ARRAY reference at 
/usr/share/backuppc/bin/BackupPC line 706.

in the logs.


> If you don't trust it as I suggested in my previous mail, add this instead:
>    print (LOG $bpc->timeStamp,"DEBUG LOG ","@{$Conf{WakeupSchedule} || 
> [5..10]}","DEBUG LOG");
This one produces :
2007-10-15 16:53:55 DEBUG LOG 5 6 7 8 9 10DEBUG LOG in the LOG file. So it 
seems to me that
$Conf{WakeupSchedule} is not defined. Indeed, if I add the standard definition
for it in /etc/backuppc/config.pl, I see :

2007-10-15 16:57:05 DEBUG LOG 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 
20 21 22 23DEBUG LOG2007-10-15 16:57:05
in the log file

        Regards,
        Romaric

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
BackupPC-devel mailing list
BackupPC-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-devel
http://backuppc.sourceforge.net/

Reply via email to