Slight error: 
/bin/cat ${clamscan_output} | /bin/grep ^/ > $INFECTED

readarray i < $INFECTED
        for lines in "${i[@]}"
        do
        echo '"_clamsav_infected_file_'$NUMBER'":'$lines ','
        ((NUMBER++))
        done

the echo contained wrong var :)

@Jochen: thanks to you too.

br,

R

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/94262f71-cecb-442f-81cc-4aaa52e86bcc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to