You can use a configuration file to run a scan task or start this task with advanced settings, allowing to log task-related events to file.
To configure advanced scan settings, execute the following command:
lightagent scan [--R[A]:<path to report file>] [--C:<path to configuration file>]
where:
R:<path to the report file>
– log in the report file only important events occurring during the scan task. Specify the full path to the file for logging events. The application creates this file and logs events in it.RA:<path to the report file>
– log in the report file all events occurring during the scan task. Specify the full path to the file for logging events. The application creates this file and logs events in it.C:<path to the configuration file>
– use the settings specified in the configuration file during the scan task. Specify a full path to the configuration file.Examples: Run a scan task using the settings from the configuration file named config:
Example of a configuration file with settings that prescribe a scan of a file named example, while saving information about events that occur during the scan in the file named report.log:
|