Hello everyone, When using "clamscan" to scan a specific file with a command line, I am assuming that the name of the file alone can be the basis for a number of positive matches for viruses, am I right? Is there a way then to use the command line interface to scan a file (with a modified temporary name), but to also provide the file's real name so that document type-specific viruses will be recognized?
Context: In our Java-based system, files are stored in a particular storage facility and cannot be scanned directly (because file data is placed within bigger files that contain metadata on each included file). So, to scan files with clamscan, we intend to extract individual file data to temporary files (00001.temp, 00002.temp, and so on) in a central directory, and have clamscan scan those files. But obviously, calling "clamscan ./tempdir/00001.temp" would not tell clamscan what the real original file name is. We can't quite use original names for temporary files because we'd have name conflicts all the time (and we're not sure we want to store potentially-malicious files with their name -and extension- intact on the server). Thanks! _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://lurker.clamav.net/list/clamav-users.html