solidity/scripts/aleth_with_log.sh

22 lines
202 B
Bash
Raw Normal View History

2019-04-02 09:07:00 +00:00
#!/usr/bin/env bash
ALETH_PATH=$1
ALETH_TMP_OUT=$2
shift
shift
2019-04-03 12:08:17 +00:00
$ALETH_PATH $@ &> >(tail -n 100000 &> "$ALETH_TMP_OUT") &
2019-04-02 09:07:00 +00:00
PID=$!
function cleanup()
{
kill $PID
}
trap cleanup INT TERM
wait $PID