solidity/scripts/aleth_with_log.sh
2019-04-03 12:43:15 +02:00

22 lines
201 B
Bash
Executable File

#!/usr/bin/env bash
ALETH_PATH=$1
ALETH_TMP_OUT=$2
shift
shift
$ALETH_PATH $@ &> >(tail -n 10000 &> "$ALETH_TMP_OUT") &
PID=$!
function cleanup()
{
kill $PID
}
trap cleanup INT TERM
wait $PID