Thanks for the reply. 

How do I know where the binary files are located?
also I did chmod the perl script to 755.
also when I change the command to 'ls -l',
I did see the files on the dir.




--- Dennis Peterson <[EMAIL PROTECTED]> wrote:
> 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
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to