your script and java script have "ndmp" in the string ..so is that going to be unique to which object you are monitoring ?
I've been using the (super! cool!  long-awaited!!) new server_stats facility in DART 6.0 to collect all kinds of cool stuff.  I'm trying to build a script to collect statistics via cron, then run a cron script to kill the server_stats collection.  My problem is, when I kill or pkill the parent pid of my script, it doesn't kill all of the child processes, because a new child seems to be forked by the undelying Java.  Let's what my pax-script in action:  [nasadmin[NAME]-CS0 scripts]$ ./start-pax-stats.sh (I capture the PID in this script, and write it as /tmp/paxstat.pid)[nasadmin[NAME]-CS0 scripts]$ cat /tmp/paxstat.pid15996[nasadmin[NAME]-CS0 scripts]$ ps -ef|grep statsnasadmin 15996 18335  0 13:04 pts/0    00:00:00 /bin/bash ./start-pax-stats.shnasadmin 16000 15996  0 13:04 pts/0    00:00:00 /bin/sh /nas/bin/server_stats server_2 -monitor ndmp.pax.session.ALL-ELEMENTS.dataOperator.ALL-ELEMENTS.backupRootDir,ndmp.pax.session.ALL-ELEMENTS.dataOperator.ALL-ELEMENTS.bytes -interval 5 -te no -format csv -file /nas/quota/slot_2/ndmp_logs/pax/pax.1101131304nasadmin 16002 16000 19 13:04 pts/0    00:00:03 /usr/java/bin/java -DNAS_DB=/nas -server -Xmx256M -cp /nas/stats/lib/server_stats.jar:/nas/http/webui/tools/tomcat/webapps/ROOT/WEB-INF/lib/ccmd-support_en_US.jar:/nas/j_lib/db.jar server_stats server_2 -monitor ndmp.pax.session.ALL-ELEMENTS.dataOperator.ALL-ELEMENTS.backupRootDir,ndmp.pax.session.ALL-ELEMENTS.dataOperator.ALL-ELEMENTS.bytes -interval 5 -te no -format csv -file /nas/quota/slot_2/ndmp_logs/pax/pax.1101131304  Now when I pkill the PPID with pkill -P 15996, I get:  [nasadmin[NAME]-CS0 scripts]$ pkill -P 15996[nasadmin[NAME]-CS0 scripts]$ ps -ef|grep statsnasadmin 16002     1  2 13:04 pts/0    00:00:03 /usr/java/bin/java -DNAS_DB=/nas -server -Xmx256M -cp /nas/stats/lib/server_stats.jar:/nas/http/webui/tools/tomcat/webapps/ROOT/WEB-INF/lib/ccmd-support_en_US.jar:/nas/j_lib/db.jar server_stats server_2 -monitor ndmp.pax.session.ALL-ELEMENTS.dataOperator.ALL-ELEMENTS.backupRootDir,ndmp.pax.session.ALL-ELEMENTS.dataOperator.ALL-ELEMENTS.bytes -interval 5 -te no -format csv -file /nas/quota/slot_2/ndmp_logs/pax/pax.110113130  The processes forked by my script are killed, but the process presumably forked by Java.  Any ideas how to capture and kill that forked Java process?  Thanks!  Karl
pkill with new server_stats