Hi papampi,
great work until my small help on WTM scripts. Congratulation!!
I using testing nvOC-19-2.0 community, now. I've a small problem with auto switching WTM coins... Detected new one, but no switch...
Log for WTM:
Currently mining ALTCOM coin is no longer more profitabile with 249
Switching to new MONA coin 190
Set up coin in 1bash is still:
COIN="ALTCOM"
Thanks for advice.
Hi mate and thanks again for your helps in wtm python script
Will check now, see if I can find the problem
Edit 1:
Just checked 8wtm_auto_switch script and it switched between MONA and ALTCOM with no problem.
Can you check and see if WTM_SWITCHER can write to WTM_top_coin or not?
May be a permission problem
Does other coins switch?
Edit 2:
Please put this in a test file and run with different coins in WTM_top_coin and 1bash COIN see if it can change 1bash or not
#!/bin/bash
source /home/m1/1bash
CURRENT_COIN=$COIN
TOP_COIN=$(cat /home/m1/WTM_top_coin | sed 's/:[0-9]*//' )
echo "$CURRENT_COIN"
echo "$TOP_COIN"
if [[ "$CURRENT_COIN" != "$TOP_COIN" ]]; then
sed -i '/^#/!s/'COIN=\"$CURRENT_COIN\"'/'COIN=\"$TOP_COIN\"/'' /home/m1/1bash
source /home/m1/1bash
CURRENT_COIN=$COIN
TOP_COIN=$(cat /home/m1/WTM_top_coin | sed 's/:[0-9]*//' )
echo "Changed"
echo "Current Coin: $CURRENT_COIN"
echo "Top Coin: $TOP_COIN"
else
echo "same coin"
source /home/m1/1bash
CURRENT_COIN=$COIN
TOP_COIN=$(cat /home/m1/WTM_top_coin | sed 's/:[0-9]*//' )
echo "Current Coin: $CURRENT_COIN"
echo "Top Coin: $TOP_COIN"
fi