Results 1 to 4 of 4
Thread: avast command line
|
|
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
-
08-01-2010 #1Linux Newbie
- Join Date
- Jan 2010
- Location
- usa
- Posts
- 222
avast command line
I want to make a script that will check my server files using avast
avast -a -c /home/lance/Documents -r=/home/lance/report/avastlog.txt
I get
#-------------------------------------------------------------------
# Date: Sat Jul 31 19:49:46 2010
# Scanned areas:
# /home/lance/Documents
#
#
# Statistics:
#
# scanned files: 1909
# scanned directories: 90
# infected files: 0
# total file size: 71.2 MB
# virus database: 100730-1 30.07.2010
# test elapsed: 4s 950ms
but i want what i see in the command line to show in the report. How do i do that? below is a sample of the command line
/home/l/Documents/readguide04.pdf [OK]
/home/l/Documents/smb.conf [OK]
/home/l/Documents/wireless.txt [OK]
/home/l/Documents/xp key.txt [OK]
/home/l/Documents/Welcome Bishop Fernando Isern.html [OK]
Archived /home/l/Documents/.doc/_1_CompObj [OK]
Archived /home/l/Documents/.doc/1Table [OK]
Archived /home/l/Documents/.doc/WordDocument [OK]
Archived /home/l/Documents/.docyInformation [OK]
/home/lance/Documents/NOVENA TO SAINT BERNADETTE SOUBIROUS.doc [OK]
#
# Statistics:
#
# scanned files: 1909
# scanned directories: 90
# infected files: 0
# total file size: 71.2 MB
# virus database: 100730-1 30.07.2010
# test elapsed: 4s 950ms
#
-
08-01-2010 #2Linux Newbie
- Join Date
- Jan 2010
- Location
- usa
- Posts
- 222
this does some of what i want so far
avast -a -c /home/lance/Documents -r=*/home/lance/report/avastlog.txt
-
08-01-2010 #3Linux Newbie
- Join Date
- Oct 2008
- Posts
- 153
-
08-01-2010 #4Linux Newbie
- Join Date
- Jan 2010
- Location
- usa
- Posts
- 222
the star is not a typo. I found out that if i don't use the star i will not have a list of the good/bad files and their location that were scanned. other wise i just her a read out that say how many are good/bad without the file name and location. this also works but you do not see the read out in the command line while it is running like you do with the star.
avast -a -c / &> /home/reports/avastloggs.txt


Reply With Quote
