When several pools are configured, then switchpool command can be used on API at port 4068 to change mining pool. Switch of pools is not bullet proof and miner can crash with segmentation fault; there is a bug in the ccminer code...
Switch pool every 40 seconds:
$ while sleep 40; do echo "switchpool" | nc localhost 4068; done
Command switch could have a parameter, an ID of pool to use:
Switch to the first pool:
$ echo "switchpool|0" | nc localhost 4068
When several pools are configured, then
switchpoolcommand can be used on API at port 4068 to change mining pool. Switch of pools is not bullet proof and miner can crash with segmentation fault; there is a bug in theccminercode...Switch pool every 40 seconds:
Command switch could have a parameter, an ID of pool to use:
Switch to the first pool: