#!/bin/rc # connect with `con -C /srv/sprwcons' # change the last line to reflect personal setup ps | grep cwfs.fs64 | pids=`{ awk '{print $2}'} if(! ~ $#pids 0){ if(test -f /srv/sprwcons){ echo -n con -C /srv/sprwcons echo ' # running' $#pids procs } if not echo error: running standalone exit running } if(test -f /srv/sprwcons) echo 'rm /srv/sprwcons' echo 'srv -e ''cwfs.fs64 -m '$home'/lib/cwfs.map w0'' sprwcons'