Joe Pruett wrote:
>> The logic seems backwards.  I think you should try changing the logic
>> from an 'or (||)' to an 'and (&&)'
>>
>> # perl -e 'use Date::Calc;' 2>/dev/null || {
>> perl -e 'use Date::Calc;' 2>/dev/null && {
> 
> the script is trying to determine if date::calc is installed, and if not 
> then it is stripping some code out of the perl script and updating the 
> EXECUTABLE var to point to the temporary script.  nothing needs to be 
> changed in that section.

Sorry again.  I didn't read the documentation above that.

It is still an oddity.  Why in the world would you modify a 
program/script on the fly.  Just require that the module be installed.

I admin 10+ (ran out of fingers and my shoes are on) mail servers all 
running pflogsumm and the shell script does not futz with pflogsumm.pl. 
  If for some reason Date::Calc or any other module wasn't installed 
during the OS installation it got installed.

I'm going to have to go look at the source distribution of Pflogsumm as 
I run CentOS and pflogsumm comes from a RPM package.  Maybe that's why 
I've never had problems even when upgrading CentOS or coming from a 
Fedora install.


\\||/
Rod
-- 
> _______________________________________________
> PLUG mailing list
> [email protected]
> http://lists.pdxlinux.org/mailman/listinfo/plug

_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to