Browse code

README

Dmitrii Kashin authored on 30/03/2017 03:36:27
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,37 @@
0
+
1
+To start:
2
+
3
+1) compile checker by running "make"
4
+2) run "./script.sh" (with options you've described in the task description)
5
+
6
+  $ time ./script.sh 
7
+  Parsing CIDRs... ok
8
+  Starting checker daemon...ok
9
+  Processing emails now
10
+  
11
+  real	0m19,689s
12
+  user	0m11,364s
13
+  sys	0m4,084s
14
+  
15
+  $ LANG=C wc -l email.txt.*
16
+    104 email.txt.match
17
+    349 email.txt.nomx
18
+    547 email.txt.unmatch
19
+   1000 total
20
+
21
+Notes:
22
+Checker was a speed-hack, because I said I finish this work in 24
23
+hours. Some stuff is hardcoded. F.e. it uses "/tmp/checker.socket" and
24
+it's not configurable.
25
+
26
+Don't worry about 19s of real time. 14s is CIDR parsing:
27
+  Parsing CIDRs... 
28
+  real	0m13,923s
29
+  user	0m1,084s
30
+  sys	0m1,540s
31
+
32
+Now it's your time to play with configuration options and workers number.
33
+Btw I've added more options. Just look at the beginning of the script. It must be obvious.
34
+
35
+Dependencies:
36
+These tools must be available in your system: bash getopt socat bc dig tr