Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: mattle74 on September 21, 2013, 07:06:59 AM



Title: cgminer API switchpool
Post by: mattle74 on September 21, 2013, 07:06:59 AM
Hi everyone.

I have 3 miners, 2 windows boxes and a linux box running scrypt coins at around 3MH/s. Not very profitable, but it's a lot of fun to play with. I just started playing around with CryptoSwitcher on Linux and got it running with no problem. The best suggestion I got from the CryptoSwitcher thread is that you can use cgminer's API to call a switchpool command and pick a new coin to mine. The command to run is:

echo "switchpool|1" | nc 127.0.0.1 4028

I'm trying to get same thing going in Windows with no success. I have netcat installed. When I run the same command in Windows, I get the following error:
STATUS=E,When=1379746858,Code=14,Msg=Invalid command,Description=cgminer 3.2.1|

I have --api-listen, --api-port and --api-allow set in the cgminer config file. netcat is obviously talking to cgminer since it's getting an error response from it. Any suggestions?

Thanks!


Title: Re: cgminer API switchpool
Post by: coinflipper21 on April 25, 2014, 04:08:25 PM
try using the -n switch

echo -n "switchpool|1" | nc 127.0.0.1 4028