annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1 #!/bin/bash
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
2
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
3 g++ -c scanner.cpp
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
4 if [ $? -ne 0 ]; then
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
5 echo "compiler errors"
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
6 exit
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
7 fi
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
8 g++ -o scanner scanner.o /usr/lib/libresolv.a
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
9 if [ $? -ne 0 ]; then
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
10 echo "linker errors"
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
11 exit
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
12 fi
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
13
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
14 if [ "$1" == "comp" ]; then
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
15 exit
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
16 fi
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
17
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
18 #./scanner test.file
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
19 #./scanner /var/dcc/log/msg.1Q2cNc #mime test
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
20 #./scanner /var/dcc/log/msg.1Q2cYs #base64 test
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
21 #./scanner /var/dcc/log/msg.1Q2bD7 #html entity test
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
22
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
23 for i in /var/dcc/log/*; do
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
24 echo '**********************'
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
25 echo $i
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
26 sleep 2
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
27 ./scanner $i | less
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
28 done