Skip to content
Snippets Groups Projects
Commit 392e6271 authored by david_williams's avatar david_williams
Browse files

utility to count threads

parent 43122078
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
PIDFILE=cc.pid
echo;
if [ -f ${PIDFILE} ] ; then
PID=`cat ${PIDFILE}`
nthreads=`ps -mp $PID | wc -l`
echo " Number of threads in wtp's CC process: $nthreads"
else
echo " PID file (${PIDFILE}) does not exist."
echo " Either CC not running, or PID file deleted"
fi
echo
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment