#!/bin/rc # mount from srv then srvfs a path if(! ~ $#* 3){ echo usage mountsrv srvname pathname newsrvname exit usage } if(! test -e /srv/$1){ echo no /srv/$1 exit no.srv } mount -c /srv/$1 /n/$1 if(! test -d /n/$1^$2){ echo /n/$1^$2 not a directory exit no.srvdir } srvfs $3 /n/$1^$2