John Fleming wrote:
Mine doesn't like using `localhost` or `mydomain.com` or `nn.nnn.nnn.nn`
(my IP)
What is wrong here?? Thanks! - John
my $logfile = "/var/log/clamav/clamav.log";
my $fclogfile = "/var/log/clamav/freshclam.log";
my $host = `localhost`;
The backticks are not quotes. Their presence causes perl to try to
execute an external executable which in your case is localhost and that
probably does not exist as an executable, and if it did the chances of
it returning your system hostname approach the null set.
Use `hostname` which is an executable that returns as a string the
hostname of your system (may require full path, i.e.
`/usr/bin/hostname`, or 'localhost' which is a string inside single
quotes. You can also use double quotes as in "localhost"
dp
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html