File: sync.sh

package info (click to toggle)
ruli 0.36-3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,148 kB
  • sloc: ansic: 12,599; sh: 416; makefile: 350; perl: 196; java: 112; php: 55; pascal: 33; lisp: 31
file content (45 lines) | stat: -rwxr-xr-x 626 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#! /bin/sh
#
# debug memory leak for ruli_sync_t
#
# $Id: sync.sh,v 1.1 2003/01/09 07:49:51 evertonm Exp $

show_domains () {

	cat <<__EOF__
savannah.gnu.org
sf.net
www.google.com
www.microsoft.com
www.uol.com.br
www.msn.com
www.cisco.com
freshmeat.net
slashdot.org
localhost
kensingtonlabs.com
vanrein.org
xxx
bogus
__EOF__

}


show_domains | while read d; do

    echo _http._tcp.$d | ./syncsolver 2> x

    grep malloc x | awk '{ print $4 }' | sort > x.1

    grep free x | awk '{ print $4 }' | sort > x.2

    diff x.1 x.2 > y

    cat y

    grep addr y | awk '{ print $2 }' | while read i; do
	grep $i x
    done

done