Mr Prince Simon said: > Hi, > > I have a simple question and maybe someone can explain > to me what happend. > > I have a perl script > --- > #!/usr/bin/perl -w > print "Content-type: text/html\n\n"; > my $hashcommand ="clamscan -r -i -l > /home/clamav/scan.txt /www/pathtomydir/"; > system($hashcommand); > > print "done"; > exit; > > --- > and when I manually run it from the command prompt ( > login as root ) > it work fine. > > But when I run it thru the website, its not working. > i already added group apache to clamsv in the group > file > --- > apache:x:48:clamav > --- > > It has to be rights issue. but I have no idea where to > begin.. > > thanks again for all your help > > Simon
Is there any reason your web server would know where to find the clam binaries? Perhaps you need to fully qualify the path for everything. You may also need to include a library path in a very worst case. dp _______________________________________________ http://lurker.clamav.net/list/clamav-users.html