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


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


echo "score_mers.py $1 $2 $3 $4 &"
score_mers.py $1 $2 $3 $4 & </dev/null
pid=$!

wait $pid