I'm having trouble getting a return code from clamdscan or clamscan in a script. I can only get a return code from a command line.
I'm using the eicar string to simulate a virus in a message and the output always shows that its found but checking the $? after does not have a value when I run it in the script. Any ideas? Pointers? I'm confused because the docs say it will return a "1" which it does if I run them from the command line, just not in a script. ==================== Kevin W. Gagel Network Administrator (250) 561-5848 local 448 (250) 562-2131 local 448 -------------------------------------------------------------- The College of New Caledonia, Visit us at http://www.cnc.bc.ca Virus scanning is done on all incoming and outgoing email. -------------------------------------------------------------- ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users