Well my objective was to test the script ,the previous was not work on my vmware workrstaion,Well i did it on another non production server for my testing.The same things (script) works fine in it with out any problem.
Now I want to add more things in my script that is it possible that there should be a date stemp inside the summary?Following is the summary of my Clamav produced automatically by the system .
Code:
----------- SCAN SUMMARY -----------
Known viruses: 4106103
Engine version: 0.98.7
Scanned directories: 17968
Scanned files: 212007
Infected files: 0
Total errors: 3881
Data scanned: 9524.85 MB
Data read: 11547.87 MB (ratio 0.82:1)
Time: 4748.013 sec (79 m 8 s)
I need this type of summary.
I just write Date and Time manually to show you.What more should I add in the script for the following output
Code:
----------- SCAN SUMMARY -----------
Date 19-11-2015
Time 13:00
Known viruses: 4106103
Engine version: 0.98.7
Scanned directories: 17968
Scanned files: 212007
Infected files: 0
Total errors: 3881
Data scanned: 9524.85 MB
Data read: 11547.87 MB (ratio 0.82:1)
Time: 4748.013 sec (79 m 8 s)