#!/bin/bash . run_profile.txt . $base_dir/plans/commands/common.fns # Kill this one at end of the test run. # echo "netcat_pid=$netcat_pid" >>$profile if [ $netcat_pid -ne 0] && [ "$netcat_pid" != "" ]; then kill -9 $netcat_pid sts=$? if [ $sts -ne 0 ]; then echo "kill of $netcat_pid failed" fi else echo "netcat_pid is NIL/EMPTY, not killed" fi