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.
navx/ To scan your system drive with default options
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
navx -ar /Users/steve/ To scan, without repairing, the files in the home folder of user steve, and report the status of all files
navx -o ~/myReportFile /tmp To scan the files in /tmp, and store the report in your home folder
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:
Reports all files scanned regardless of damage or threat.
Forces the scan to run even if the output file specified with -o cannot be created or opened.
Reports on files that were inaccessible for scanning.
Quiet, only the summary text is displayed on the screen.
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