Virex: Configuring Scan Operations

This article discusses how to configure the scan operations.
Instead of running each scan operation with all its options directly from the command line, you can configure a scan operation with the options you choose, then save it in a text file as a scan task.

This allows you to run complete scans with ease, and at any time. Your scan settings specify the actions that occur when a virus is detected.

To preconfigure a scan operation:

Choose the command options that you want to use.

You can choose more than one option.

Type the command options into a text editor just as you might on the command line.

Save your text as a file.

Type either one of these lines at the command prompt:

./vscanx --load <file> <target>

or

./vscanx --config <file> <target>

Here, <file> is the name of the text file you created, and <target> is the file or directory you want to scan.

Press the RETURN or ENTER key on your keyboard to run the scan operation.

If the scanner detects no virus infection, it displays no output.

Example 1

To scan files in the /usr/dos directory according to details given in the task
file, /usr/local/config1, type:

./vscanx --load /usr/local/config1 /usr/dos

The contents of the task file, /usr/local/config1, are:

-m /usr/local/viruses --ignore-compressed --maxfilesize 4

Using the Command-Line Scanner

They instruct the scan to move any infected files to /usr/local/viruses,
to ignore any compressed files in the target directory, and to examine only files smaller than 4MB.

Alternatively, the contents of the task file can be arranged as single lines:

-m /usr/local/viruses
--ignore-compressed
--maxfilesize 4

Example 2

To scan only files smaller than 4MB and to ignore any compressed files in three separate directories, type:

./vscanx --load /usr/local/config1 --file /usr/local/biglist

The contents of the task file, /usr/local/config1, are:

--ignore-compressed
--maxfilesize 4

The contents of the other file, /usr/local/biglist, are:

/usr/local/bin
/temp
/etc

This information and more can be found at http://virexhelp.com/

Published Date: Feb 18, 2012