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