#!/bin/bash
# Long line

trap "/usr/bin/killall -q -u $USER ./Statements 2>/dev/null" 0 1 2 3 9 15
trap "/bin/rm -f $STDERR" 0 1 2 3 9 15
trap "/usr/bin/killall -q -u $USER /c/cs223/hw1/Tests/LongLine 2>/dev/null" 0 1 2 3 9 15
trap "/bin/rm -f pipe" 0 1 2 3 9 15

# create and fill pipe
mkfifo pipe
/c/cs223/hw1/Tests/LongLine 10000000 > pipe &

/c/cs474/bin/run -dsize=8m -stderr=/dev/null ./Statements < pipe

# remove pipe
rm -rf pipe
