#!/usr/bin/env python

#Requires ClamAV to be installed

import sys
import subprocess



def clamscan():
    scan = subprocess.check_output([
        'clamscan',
        '-r',
        starting_dir
    ])
    
    print scan
    

starting_dir = sys.argv[1]

print "Running scan.........."
clamscan()




Create viruscheck.py