aboutsummaryrefslogtreecommitdiff
path: root/src/score_wrapper.sh
blob: ee7e40df5166aa9b5629d342e0970438ead44da4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash


function clean_exit {
	echo -e "\nInterrupt caught. Exiting cleanly..."
	echo "killing $pid"
	kill -11 $pid
	sleep .5
	exit
}
trap clean_exit SIGINT

score_mers.py -s $1 -f $2 -b $3 -o $4 & </dev/null
pid=$!

wait $pid