-#!/bin/sh
+#!/bin/bash
# System Profiling Script
proc_dump_start() {
echo "$(date +%T): proc dump started...." >> $OUTPUTDIR/$HOSTNAME/summary
- sh -c '
+ bash -c '
CTRFILE=/$OUTPUTDIR/$HOSTNAME/tmp/running.$$.pid;
echo $$ > ${CTRFILE};
while [ -f $CTRFILE ]; do