blob: b2faa09b001150ffb76c57a37bee168c4fa14454 [file] [log] [blame]
david_williams51256372010-04-20 21:04:25 +00001#!/usr/bin/env bash
david_williams9e2ff0e2009-01-14 02:42:39 +00002PIDFILE=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