Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / examples / IPC_SAP / SOCK_SAP / run_test.sh
blobac47d01c4b4b49069fc9d466dc8cdccc696f5d59
1 #! /bin/sh
3 # Spawns CPP-inserver-fancy and CPP-inclient executables on a single host.
5 usage="usage: $0 #client_threads"
7 user=`whoami`
8 iterations=1000
10 if [ $# -ne 1 ]; then
11 echo $usage;
12 exit 1
14 threads=$1;
17 ########
18 ######## Enable signal handler.
19 ########
20 trap 'kill -1 $server_pid; ' 0 1 2 15
23 ########
24 ######## Start CPP-inserver-fancy and save its pid.
25 ########
26 ./CPP-inserver-fancy > \
27 ${tmp}server.log 2>&1 &
28 server_pid=$!
30 sleep 2;
32 ########
33 ######## Start CPP-inclient.
34 ########
35 ./CPP-inclient -2 -T 100000 -m 69 -t $threads -i 100 > ${tmp}client-${threads}.log 2>&1