diff options
author | rsc <devnull@localhost> | 2004-04-19 18:18:37 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-04-19 18:18:37 +0000 |
commit | 0a61c07d591273b76da21fb8386b669989da3707 (patch) | |
tree | 1dd9832f7d646f12c0ff5cf7ff64d1fddc6bd361 /acid/transcript | |
parent | c8af1ab17b72f500c27688598dbb893f09f62c53 (diff) | |
download | plan9port-0a61c07d591273b76da21fb8386b669989da3707.tar.gz plan9port-0a61c07d591273b76da21fb8386b669989da3707.tar.bz2 plan9port-0a61c07d591273b76da21fb8386b669989da3707.zip |
acid files
Diffstat (limited to 'acid/transcript')
-rwxr-xr-x | acid/transcript | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/acid/transcript b/acid/transcript new file mode 100755 index 00000000..023dabda --- /dev/null +++ b/acid/transcript @@ -0,0 +1,33 @@ +#!/bin/rc +switch($#*){ +case 0 1 2 + echo usage: window '''minx miny maxx maxy''' '''minx miny maxx maxy''' cmd args ... + exit usage +} + +rfork ns + +if(mount $wsys /mnt/acid N`{{echo $pid $1 }| sed 's/^ //g;s/ +/,/g'}){ + winid=`{cat /dev/winid} + echo transcript > /mnt/acid/label + echo transcript > /mnt/acid/cons + shift +} +if not exit 0 + +if(mount $wsys /mnt/wsys N`{{echo $pid $1 }| sed 's/^ //g;s/ +/,/g'}){ + shift + bind -b /mnt/wsys /dev +} +if not exit 0 + +echo -n `{basename $1} > /dev/label >[2] /dev/null +@{ + echo hang > /proc/^`{cat /dev/ppid}^/ctl + $* < /dev/$winid/cons > /dev/$winid/cons >[2] /dev/$winid/cons & + exit $apid +} +ostatus = `{echo $status | sed 's/.*://'} +echo waitstop > /proc/$ostatus/ctl +echo nohang > /proc/$ostatus/ctl +exit $ostatus |