Hi I am farming in ubuntu 20.04, I am trying to create a batch file .sh to run the forks in cli mode, the think is that it start the daemons, but after a few seconds every fork closes. I am using the following commands:
#!/bin/bash
cd ~/silicoin-blockchain/
. ./activate
sit start farmer
deactivate
cd /
sleep 5
cd ~/taco-blockchain/
. ./activate
taco start farmer-no-wallet
deactivate
cd /
The “PAUSE” command is not working.
And one more thing, when I am running the above commands by hand it’s working fine and I close the terminal at the end. So when I run the terminal the commands run ok, and after I close the terminal the daemons(node, farmer, wallet etc) work ok.
And when I run the .sh file from cli with ./start.sh its works fine. It does not work when I run the start.sh file from file manager with double click and run in terminal!!