#!/bin/rc # "pushes" a running rio onto a window on another window system. mostly just a trick. # riopush TARGETPID rfork e local = `{ns |grep wsys |grep rio |sed 's/#s/\/srv/g' |tr -d ''''} winid = `{cat /dev/winid |tr -d ' '} localmount = `{echo $local(1) $local(2) $local(3) $winid} remote = `{ns $1 |grep wsys |grep rio |sed 's/#s/\/srv/g' |tr -d ''''} bind /mnt/wsys /n/oldwin $remote bind -b /mnt/wsys /dev bind /n/oldwin/cons /dev/cons bind /n/oldwin/consctl /dev/consctl bind /n/oldwin/mouse /dev/mouse echo $localmount >/tmp/riocontrolwin grio exit ''