Under Linux, Solaris, and Mac OS X, you may use the Local Alert Manager setting to send notification information to a shell script that you write yourself. The script then takes any action you indicate, such as sending an email to a specified address when eTrust Antivirus detects a virus.
Use the script InoSetAlert to specify the name of the script (using an absolute path) that you want to run when an alert is generated. You must also use absolute paths when referencing any files in the script itself, unless the code is explicit about changing to a particular directory.
For example, the following command causes /home/myfiles/myscript to be used as the alert script:
InoSetAlert /home/myfiles/myscript
The script must be executable. If it is not, use the chmod command to change the file mode. For example:
chmod +x /home/myfiles/myscript
The following command turns the feature off:
InoSetAlert -delete
Under Mac OS X, you can also indicate an alert script to be run in the eTrust Antivirus Preference Options panel that can be run from System Preferences panel.
eTrust Antivirus sends specific information, which it receives as standard script arguments such as $1, $2, and so on, to the script. These arguments, in order, are: