view simulate @ 67:ff8d7b4499f5 default tip

Submission prep
author Mike Pavone <pavone@retrodev.com>
date Mon, 16 Jul 2012 04:48:50 -0700
parents d21c31c6b5ef
children
line wrap: on
line source

#!/bin/sh

killafter () {
	sleep $1;
	/bin/kill -SIGINT $!;
}

mkfifo .simpipe
if [ $# -gt 1 ]; then 
	bin/sim $1 < .simpipe | ./lifter > .simpipe & killafter $2
else
	bin/sim $1 < .simpipe | ./lifter > .simpipe
fi
rm .simpipe