X hits on this document

391 views

0 shares

0 downloads

0 comments

75 / 147

Perform a scan from the command line

Use the Command Line Scanner to run scans from the command line and to obtain scan reports and save them in your specified destination. Create scripts to be incorporated into other UNIX maintenance scripts.

Following are a few examples of how you can customize the features of Command Line Scanner to run the scans that you want.

1

navx/ To scan your system drive with default options

1

navx -a -r /Users/steve/ To scan, without repairing, the files in the home folder of user steve, and report the status of all files

1

navx -ar /Users/steve/ To scan, without repairing, the files in the home folder of user steve, and report the status of all files

1

navx -o ~/myReportFile /tmp To scan the files in /tmp, and store the report in your home folder

1

navx -a -o ~/myReportFile /tmp > scansummary.log To scan the files in /tmp, store the complete report in your home folder, and the summary in a log

To scan a file using the Command Line Scanner

1 2 3

Open Terminal. At the prompt, type navx. Type the command you want. Your options are:

-a

Reports all files scanned regardless of damage or threat.

-f

Forces the scan to run even if the output file specified with -o cannot be created or opened.

-h

Reports on files that were inaccessible for scanning.

-q

Quiet, only the summary text is displayed on the screen.

-r

Does not repair files with defined threats.

-o <output filename>

Output appends to the file <output filename>. If -q is also selected, only the summary appears on the screen, but the full report is appended to <output filename>.

Protecting disks, files, and data from viruses Perform a scan from the command line

75

Document info
Document views391
Page views391
Page last viewedFri Dec 02 18:44:43 UTC 2016
Pages147
Paragraphs2296
Words28485

Comments