Originally posted by Michael Hertel
hcienginestop -p $(echo $(hciprocstatus | awk '/running/ { print $1 }') | tr ' ' ,)
#!/usr/bin/ksh## Begin Module Header ==============================================================================##------# Name:#------## stop_all_procs.ksh##---------# Purpose:#---------## stop all running procs defined in the process directory##-------# Notes:#-------## none##---------# History:#---------## 2000.10.05 Russ Ross# - wrote initial version## 2005.03.28 Russ Ross# - made script smarter by checking if the pid file exists before shutting down the process## End of Module Header =============================================================================for process_name in `ls $HCISITEDIR/exec/processes`; do if [[ -f $HCISITEDIR/exec/processes/$process_name/pid ]]; then hcienginestop -p $process_name fidone