github.com/aergoio/aergo@v1.3.1/bin/run.sh (about) 1 #!/bin/bash 2 3 4 INPUT_DIR=$1 5 6 if [ "$#" -ne 1 ]; then 7 echo "./make.sh [input_dir]" 8 exit 9 fi 10 11 12 elapsed=0 13 for file in $INPUT_DIR/*.trx; do 14 echo $file 15 #$start_time="$(date -u +%s.%N)" 16 #./aergocli committx --jsontxpath $file &> /dev/null & 17 ./aergocli committx --jsontxpath $file &> /dev/null 18 pids="$pids $!" 19 #end_time="$(date -u +%s.%N)" 20 #$elapsed="$(bc <<<"$elapsed+($end_time-$start_time)")" 21 done 22 23 24 wait $pids 25 #echo "enter any key to stop all process" 26 #read -n1 kbd 27 #pkill -P $BASHPID 28 29 30