하도 맨날 적어야하길래 힘들어서 shellscript로 적어보았다.
그런데 이게 더 오래걸렸다는건 비밀...😂😂
#!/bin/bash
./grootcoind -printtoconsole -conf=/home/seunghee/workspace/groot/execute/bin/grootcoin1.conf -datadir=/home/seunghee/workspace/groot/execute/bin/data1
이건 실행할 때 & 을 붙여서 백그라운드로 실행시키는게 좋을 거 같다.
#! /bin/bash
while true
do
./grootcoin-cli -conf=/home/seunghee/workspace/groot/execute/bin/grootcoin1.conf generate 1;
sleep 1;
done
sleep 1 안해주면 이상해진다고 한다. while문을 이용해서 무한 루프를 돌리는데 거의 while[true] 이렇게 적혀있어서 힘들었따. ㅠㅠ
아주 자동으로 결과를 잘 내준다.