#!/bin/rc # for historical purposes only; see snip instead. rfork e if (~ $pubserv '') pubserv=9srv.net srv -cnmq tcp!$pubserv!17037 $pubserv^!pub /n/$pubserv^!pub || { echo 'can''t mount pub service' >[1=2] exit mountpub } source=/dev/snarf target=/n/$pubserv^!pub/$user.$pid if (~ $#* 1) source=$1 cp $source $target && echo $target || echo error: $status