Author

Topic: cgminer API switchpool (Read 1574 times)

newbie
Activity: 6
Merit: 0
April 25, 2014, 11:08:25 AM
#2
try using the -n switch

echo -n "switchpool|1" | nc 127.0.0.1 4028
full member
Activity: 163
Merit: 100
September 21, 2013, 02:06:59 AM
#1
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!
Jump to: