From: Larry G. <Li...@IS...> - 2003-06-10 13:25:55
|
Thanks Jamie, I did try that too and there were no errors to report. I feel like you were probably on the right track suggesting the inclusion of a full path . . . Is it possible that the squidGuard binary requires an environment variable that the miniserve configuration is not providing? I can only think, at this point, that the difference between a terminal session and Webmin/miniserv is environment related. Where do I find the environment settings for miniserv? Also, is it possible that if I need an environment variable set that I can localize it just for this subroutine? Thanks Jamie! --Larry > -----Original Message----- > From: Jamie Cameron > > You should display the return value from backquote_logged, > which is the output from the program - it may contain some error > message explaining what went wrong. Also, check the exit status in > the $? variable, which if non-zero indicates failure. > > - Jamie > > Larry Gilson <Li...@IS...> wrote .. > > Jamie, > > > > Thanks for the reply! > > > > > This may be a path problem - make sure that whatever is in > > > $bin is a full path like '/usr/local/bin/foo' instead of > > > just 'foo', which may not be in webmin's program search path. > > > > > > - Jamie > > > > > > &backquote_logged("$bin -C $_[0] 2>&1 </dev/null"); > > > > Both $bin and $_[0] are absolute paths. I can cat the file that > > the above command was echoed into, copy and paste at the command > > line, execute, and obtain a successful db file. The result is: > > > > /usr/bin/squidGuard -C /var/lib/squidguard/blacklists/ads/domains > > /usr/bin/squidGuard -C /var/lib/squidguard/blacklists/ads/urls > > > > Just for kicks, I modified the &get_binary_path() so the binary is > > found rather than the symlink. Still nothing. Permissions seem > > to be correct, execute is allowed. I just don't get it. It > > should work. Any other suggestions? > > > > Thanks, > > Larry |