#!/bin/rc switch($service){ case terminal switch($#*){ case 1 9fs $1 x=`{echo $1 | awk '{n=split($1,out,"[/!]"); print out[n]}'} if(test -f /n/$x/usr/spool/mail/mail.log) exec seemail /n/$x/usr/spool/mail/mail.log exec seemail /n/$x/usr/mail/mail.log case * echo usage: vismon system } case * echo run vismon on the terminal, not the CPU! }