Bitcoin Forum
May 11, 2024, 04:24:03 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: cgminer API switchpool  (Read 1551 times)
mattle74 (OP)
Full Member
***
Offline Offline

Activity: 163
Merit: 100


View Profile
September 21, 2013, 07: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!
1715444643
Hero Member
*
Offline Offline

Posts: 1715444643

View Profile Personal Message (Offline)

Ignore
1715444643
Reply with quote  #2

1715444643
Report to moderator
1715444643
Hero Member
*
Offline Offline

Posts: 1715444643

View Profile Personal Message (Offline)

Ignore
1715444643
Reply with quote  #2

1715444643
Report to moderator
According to NIST and ECRYPT II, the cryptographic algorithms used in Bitcoin are expected to be strong until at least 2030. (After that, it will not be too difficult to transition to different algorithms.)
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715444643
Hero Member
*
Offline Offline

Posts: 1715444643

View Profile Personal Message (Offline)

Ignore
1715444643
Reply with quote  #2

1715444643
Report to moderator
1715444643
Hero Member
*
Offline Offline

Posts: 1715444643

View Profile Personal Message (Offline)

Ignore
1715444643
Reply with quote  #2

1715444643
Report to moderator
1715444643
Hero Member
*
Offline Offline

Posts: 1715444643

View Profile Personal Message (Offline)

Ignore
1715444643
Reply with quote  #2

1715444643
Report to moderator
coinflipper21
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
April 25, 2014, 04:08:25 PM
 #2

try using the -n switch

echo -n "switchpool|1" | nc 127.0.0.1 4028
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!