16 lines
403 B
Bash
Executable File
16 lines
403 B
Bash
Executable File
#!/bin/bash
|
|
result=[]
|
|
i=0
|
|
j=0
|
|
for filename in /home/ubuntu/storage/legitimate/*.exe; do
|
|
echo "$filename"
|
|
result="$(python3.6 /home/ubuntu/bigData/projet_big_data/06_extract_features_and_predict.py $filename)"
|
|
python3.6 /home/ubuntu/bigData/projet_big_data/06_extract_features_and_predict.py "$filename"
|
|
if [ $result == "0" ]
|
|
then
|
|
((j++))
|
|
fi
|
|
((i++))
|
|
echo "${j}/${i} bad answers"
|
|
done
|