#!/bin/bash . run_profile.txt . $base_dir/plans/commands/common.fns logdir=$run_dir/logs logfile=netcon-$id.log if [ ! -d $logdir ]; then echo "Error: Run directory '$logdir' does not exist" exit -10 fi # This takes netconsole traffic from caor-test8 (hence the 6608): netcat -u -l -p 6608 >$logdir/$logfile & # Kill this one at end of the test run. netcat_pid=$! echo "netcat_pid:$netcat_pid" echo "netcat_pid=$netcat_pid" >>$profile