Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- if [ $# -eq 1 ]
- then
- RESULT=$(clamassassin < $1 | grep "X-Virus-Status")
- if [ "$RESULT" = "X-Virus-Status: Yes" ]
- then
- zenity --warning --title="Threat detected" --text="Clamassassin has detected a threat in file\n$1\n$RESULT"
- exec true
- fi
- fi
- exec false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement