File: t

package info (click to toggle)
tra 20020816-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 1,696 kB
  • ctags: 2,623
  • sloc: ansic: 22,519; makefile: 406; asm: 269
file content (51 lines) | stat: -rwxr-xr-x 963 bytes parent folder | download
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
46
47
48
49
50
51
#!/bin/rc


rm t1.db* t2.db*
8.tramkdb -R t1.db t1
8.tramkdb -R t2.db t2
rm -rf r1/* r2/*
cp /lib/words r1/a
8.minisync -Drpc -s ./t1 ./t2
cat /lib/words >>r1/a
8.minisync -Drpc -s ./t1 ./t2
exit 0

ls -l r2/a
chmod 644 r1/a
echo hello again world >r1/a
chmod 444 r1/a
8.trascan ./t1
8.tradump ./t1.db
8.trascan ./t2
8.tradump ./t2.db

8.minisync -D ./t1 ./t2
ls -l r2/a
exit 0

rx tcp!204.178.31.2 /usr/rsc/cmd/tra/c/txword.startover
mount /srv/kfs.other /n/other
cd /n/other/rsc
rm -rf /n/other/rsc/xxx/*
rm xxx.db*
/usr/rsc/cmd/tra/c/8.tramkdb xxx.db xxx x x x
cd /usr/rsc/cmd/tra/c
p=$pid
dohang=no
if(~ $dohang yes){
	{
		sleep 2
		x=`{ps|grep 8.minisync | awk '{print $2}'}
		echo -n nohang >/proc/$p/ctl
		if(~ $#x 0)
			echo no minisync
		if not{
			echo -n nohang >/proc/$x/ctl
			echo 'trump()' | acid -l trump $x > /tmp/mem.out
		}
	} &
	echo -n hang >/proc/$p/ctl
}
# time 8.minisync ./tachille.xword ./txxx
time 8.minisync -n ./tachille.xword ./txxx