some last fixes ... for 0.2.7
3 # ------------------------------------------------------
4 # sample test file for checking the logiing
5 # ------------------------------------------------------
8 if [ -z "${FILE_TO_LOG}" ]; then
9 echo "please specify file name to log"
12 FILE_TO_LOG=$(readlink -f ${FILE_TO_LOG})
14 FILE_TIMESTAMP=$(date +"%s") # unix epoch timestamp
15 FILE_CHECKSUM=$(md5sum < "${1}" | gawk '{ print $1; }') # MD5-Checksum
17 OPENSECURITY_URL="http://localhost:8090/log"
20 curl --data-urlencode "file=${FILE_TO_LOG}" --data-urlencode "checksum=${FILE_CHECKSUM}" --data-urlencode "timestamp=${FILE_TIMESTAMP}" --data-urlencode 'action=copy' --data-urlencode 'memo=copied to unsafe USB Drive G:\\' ${OPENSECURITY_URL}