KAPERSKY Anti-Virus 5.0 for Linux, FreeBSD and OpenBSD File Server Administrator's Manual page 71

Hide thumbs Also See for Anti-Virus 5.0 for Linux, FreeBSD and OpenBSD File Server:
Table of Contents

Advertisement

Appendix A
sname=${bname%%.*}
if [ ! -d $TEMP ]; then
mkdir -p $TEMP
fi
## tar
if [ $suf == gz -o $suf == tgz ] ; then
list=`tar -ztf $name`
tar -C $TEMP -zxf $name
$KAVKAVSCANNER -c $CONF -i3 $TEMP
cd $TEMP
tar -czf $sname.tgz *
for i in $list
mv $TEMP/$sname.tgz $SPWD/$sname.tgz.cure
rm -rf $TEMP
## zip
elif [ $suf == zip ] ; then
list=`unzip -l $name`
unzip $name -d $TEMP
$KAVKAVSCANNER -c $CONF -i3 $TEMP
cd $TEMP
zip $sname.zip -r .
echo $SPWD
mv $TEMP/$sname.zip $SPWD/$sname.zip.cure
rm -rf $TEMP
do
j=${i##/*/}
rm $j
done
71

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Anti-Virus 5.0 for Linux, FreeBSD and OpenBSD File Server and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents