File: symscanengine-wrapper

package info (click to toggle)
mailscanner 4.79.11-2.2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 5,820 kB
  • ctags: 1,309
  • sloc: perl: 25,655; sh: 2,666; xml: 624; makefile: 242
file content (34 lines) | stat: -rwxr-xr-x 996 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh

#
# Symantec Scan Engine wrapper
#
PackageDir=$1
shift
prog=ssecls/ssecls

if [ "x$1" = "x-IsItInstalled" ]; then
  [ -x ${PackageDir}/$prog ] && exit 0
  exit 1
fi

ScanOptions=""
# Defaults to server 127.0.0.1:1344.
# Multiple servers can be specified for load balancing
#ScanOptions="$ScanOptions  -server 127.0.0.1:7777"
# Defaults to the Scan Engine's scan policy.
#ScanOptions="$ScanOptions -mode scanrepair"
# Display file name and infection status for every file scanned.
#ScanOptions="$ScanOptions -verbose"
# Display detailed infection information for infected files.
#ScanOptions="$ScanOptions -details"
# Display the total time required to scan the file.
#ScanOptions="$ScanOptions -timing"
# Recurse through directories.
#ScanOptions="$ScanOptions -recurse"
# Defaults to delete infected file when error occurs replacing the file.
#ScanOptions="$ScanOptions -onerror <leave|delete>"

# Join all the output lines into one big line
exec $PackageDir/$prog $ScanOptions "$@"