import dspace
import time
done = 0
dspace.scan_description("test description");
while done==0:
	dspace.scan_start(0,"/var/www/scans/lastScan.jpeg");
        while dspace.scan_done()==0 :
                time.sleep(1)
        print "scan done"
	done=1
