blob: 69a2a844b556449d0c0abd64250f86bc8205fdd4 [file] [log] [blame]
david_williams9e2ff0e2009-01-14 02:42:39 +00001#!/bin/sh
2PIDFILE=cc.pid
3echo;
4if [ -f ${PIDFILE} ] ; then
5 PID=`cat ${PIDFILE}`
6 # I've found lsof is in /user/sbin on some machines
david_williamsbd58ce52009-03-12 05:20:26 +00007 nhandles=`/usr/bin/lsof -p $PID | wc -l`
8 echo " Number of handles in wtp's CC process: $nhandles"
david_williams9e2ff0e2009-01-14 02:42:39 +00009else
10 echo " PID file (${PIDFILE}) does not exist."
11 echo " Either CC not running, or PID file deleted"
12fi
13echo