Bitcoin Forum
December 10, 2016, 03:04:02 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Automatically Identify Disconnection and Switch(.pl) pools  (Read 1225 times)
TurdHurdur
Full Member
***
Offline Offline

Activity: 217


View Profile
June 23, 2011, 08:53:04 PM
 #1

I've expanded on my previous perl code to keep a miner active(in my sig) and have come up with Automatically Identify Disconnection and Switch(aids.pl). The script works on *n*x and Windows(Strawberry/Cygwin) with some packages from cpan.

You may have to do a notest install of POE on Windows and get certain dependencies from ppm. Read the thread in my sig for more info about installing the cpan packages on Windows.

aids.pl: http://pastebin.com/FL2xcxv0
aids_conf.json: http://pastebin.com/u4HcZLA6

The simplest use would be to replace the example command lines in connections -> connection name(Pool 1 server 1, Pool 1 server 2, etc.) -> command. Read aids_conf.json's comments for more advanced usage. Feel free to ask non-perl/cpan/ppm-specific questions in this thread about aids.pl and how to write aids_conf.json.
1481382242
Hero Member
*
Offline Offline

Posts: 1481382242

View Profile Personal Message (Offline)

Ignore
1481382242
Reply with quote  #2

1481382242
Report to moderator
1481382242
Hero Member
*
Offline Offline

Posts: 1481382242

View Profile Personal Message (Offline)

Ignore
1481382242
Reply with quote  #2

1481382242
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
kripz
Full Member
***
Offline Offline

Activity: 182



View Profile
June 29, 2011, 03:56:30 AM
 #2

Before i give my computer aids, can you explain it a little more? So this only handles pools going down? Are you just pinging the server or something similar?

 Merged mining, free SMS notifications, PayPal payout and much more.
http://btcstats.net/sig/JZCODg2
TurdHurdur
Full Member
***
Offline Offline

Activity: 217


View Profile
June 29, 2011, 02:58:37 PM
 #3

The script matches lines from the miner against "penalty_triggers" > "..." > "regex" to determine if a disconnect/idle warning occurs and switches to another "connections" > "..." > "command", if you've configured it that way.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!