annotate src/test2.bash @ 10:9ca440c8d187

integration work on url scanner
author carl
date Thu, 22 Apr 2004 18:46:53 -0700
parents dbe18921f741
children
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
8
dbe18921f741 integration work on url scanner
carl
parents: 6
diff changeset
23 #for i in /var/dcc/log/*; do
dbe18921f741 integration work on url scanner
carl
parents: 6
diff changeset
24 for i in /tmp/dcc/msg*; do
6
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
25 echo '**********************'
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
26 echo $i
8
dbe18921f741 integration work on url scanner
carl
parents: 6
diff changeset
27 ./scanner $i
6
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
28 done