PDA

View Full Version : avgscan nautilus script


SteveG
July 9th, 2009, 09:38 PM
I put together this nautilus script to scan files with avg linux.
Download the avg deb linux from here: http://free.avg.com/download?prd=afl
Install it.

I use the following script and place it in ./gnome2/nautilus-scripts.
Make it executable.

-----------------------------
#!/bin/bash
#avgscan.sh
# scans selected files or directory for viruses
xterm -T "AVG Virus Scanning $*" -e "pv -ptre "$*" | avgscan --heur --arc --report ./avgscanlog-"$*" $*" &
-----------------------------------------

I would like to have the xterm not auto close after the scan completes, but at least you can see the scan results in the current folder.
You then select your file & right click to access nautilus script and execute it.
This is a work in progress, so anyone please help to improve.

cheers
SteveG

jpeddicord
July 11th, 2009, 09:50 PM
Moved to Security Discussions; to fit in the Tutorials & Tips criteria this must consist of more than a script. :)

Jacob

juancarlospaco
July 12th, 2009, 04:41 PM
+hold
parameter for xterm.