diff src/test2.bash @ 6:cea50d98a6cf

start work on content url scanner
author carl
date Wed, 21 Apr 2004 22:39:46 -0700
parents
children dbe18921f741
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/test2.bash	Wed Apr 21 22:39:46 2004 -0700
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+g++ -c scanner.cpp
+if [ $? -ne 0 ]; then
+    echo "compiler errors"
+    exit
+fi
+g++ -o scanner scanner.o /usr/lib/libresolv.a
+if [ $? -ne 0 ]; then
+    echo "linker errors"
+    exit
+fi
+
+if [ "$1" == "comp" ]; then
+    exit
+fi
+
+#./scanner test.file
+#./scanner /var/dcc/log/msg.1Q2cNc   #mime test
+#./scanner /var/dcc/log/msg.1Q2cYs   #base64 test
+#./scanner /var/dcc/log/msg.1Q2bD7   #html entity test
+
+for i in /var/dcc/log/*; do
+    echo '**********************'
+    echo $i
+    sleep 2
+    ./scanner $i | less
+done