Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux 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
    #

  2. #2
    Linux 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

  3. #3
    Quote Originally Posted by lancebermudez View Post
    this does some of what i want so far
    avast -a -c /home/lance/Documents -r=*/home/lance/report/avastlog.txt
    Is the star a typo? I can't see any reason for it otherwise. I don't quite understand want you want to do. The program runs and gives a report, what else do you want it to do?

  4. $spacer_open
    $spacer_close
  5. #4
    Linux 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •