#!/bin/csh
# 
#	This portion of the script will run the cutpaste2 test. Two
#	copies of the client cutpaste2a will be invoked.  This
#	will test cut/paste interaction between two clients.
#
cp Cutpaste2a Cutpaste2a1
cp Cutpaste2a Cutpaste2a2

Cutpaste2a1 -geometry +0+0 &
Cutpaste2a2 -geometry +0+200 &

Cutpaste2b

#
# Kill both copies of client cutpaste1a1
#

set PS_LINE1=`ps | grep Cutpaste2a1 | grep -v grep`
set PS_LINE2=`ps | grep Cutpaste2a2 | grep -v grep`

set PID1=`echo $PS_LINE1 | cut -d' ' -f1`
set PID2=`echo $PS_LINE2 | cut -d' ' -f1`

kill -9 $PID1
kill -9 $PID2

rm Cutpaste2a1
rm Cutpaste2a2

