Most excellent. I'll make the change, thanks for the tip! Brian
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of dctrud Sent: Tuesday, August 18, 2009 9:16 AM To: spctools-discuss Subject: [spctools-discuss] tpplib_perl.pm tpp_hostname path On our install the TPP bin dir isn't in $PATH, and the TPP executables are often called from outside of the bin dir. This results in the tpplib_perl.pm calls to tpp_hostname not being able to find the tpp_hostname executable. To get around this I modified the tpplib_perl.pm code to use FindBin (which is in perl core). As long as the script using the module is in the same place then it will be able to find tpp_hostname. It's a pretty trivial change, but wondered if it is worth including? ** Added ** use FindBin; my $tpp_hostname = "$FindBin::Bin/tpp_hostname"; Then all of the backticks calls to tpp_hostname call $tpp_hostname instead DT --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "spctools-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/spctools-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
