#!/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
