Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: bbxx on May 13, 2013, 09:47:16 PM



Title: [YAC] switching pools by minerd in shell (Linux)
Post by: bbxx on May 13, 2013, 09:47:16 PM
Hi
We have now a problem with pools, time to switch to solo for while

any idea how to script this in linux ?

- check process cpu usage
- if it is 0 kill and run minerd solo
- wget pool, if size>1kb kill minerd solo run pool

and put into cron every 2 minutes

where yac.sh is pool and yac-solo.sh is solo

10 YAC bounty
please add some to this :)


Title: Re: [YAC] switching pools by minerd
Post by: turtle83 on May 13, 2013, 09:54:56 PM
Code:
#!/bin/bash

while [ 1 ]
do
  ./minerd -a scrypt-jane --retries=1 --timeout=15 --url=http://shitty_pool_1.com --user=user1 --pass=pass1  --syslog
  ./minerd -a scrypt-jane --retries=1 --timeout=15 --url=http://shitty_pool_2.com --user=user2 --pass=pass2  --syslog
  ./minerd -a scrypt-jane --retries=1 --timeout=15 --url=http://shitty_pool_3.com --user=user3 --pass=pass3  --syslog
  ./minerd -a scrypt-jane --retries=1 --timeout=15 --url=http://shitty_pool_4.com --user=user4 --pass=pass4  --syslog
    timeout 300 ./minerd -a scrypt-jane --url=http://127.0.0.1:8108 --user=bitcoinrpc --pass=widijwegobleygoowqdoiwdiqblahblah --syslog
done


Basically. try to mine first pool if it times out for 15 seconds, retry once. if it times out again, then move to pool 2.
If all 4 of them failed. Then solomine for 5 minutes before trying pool1 again.... and so on.... forever....


Title: Re: [YAC] switching pools by minerd in shell (Linux)
Post by: bbxx on May 13, 2013, 09:57:51 PM
You are great, Turtle

I know u are bagholder of YAC

so my 10 YACS is nothing for U lol.

give me address anyway deal is deal :)


Title: Re: [YAC] switching pools by minerd in shell (Linux)
Post by: turtle83 on May 13, 2013, 10:04:37 PM
You are great, Turtle

I know u are bagholder of YAC

so my 10 YACS is nothing for U lol.

give me address anyway deal is deal :)

Option 1 : YNdaaBMPqCprh1WwieDjH6Lit4rCHmCvud (tips are special. even if monetary value may not seem a lot at the moment :) )
Option 2 : https://bitcointalk.org/index.php?topic=200311.0  add to the value for p2pool code bounty.


Title: Re: [YAC] switching pools by minerd in shell (Linux)
Post by: bbxx on May 13, 2013, 10:20:22 PM
I did paid to p2p pool

https://bitcointalk.org/index.php?topic=200311.msg2136291#msg2136291

:)



Title: Re: [YAC] switching pools by minerd in shell (Linux)
Post by: turtle83 on May 13, 2013, 10:36:30 PM
I did paid to p2p pool

https://bitcointalk.org/index.php?topic=200311.msg2136291#msg2136291

:)


nice. i lost few mins of productivity during the good ol gold rush days cause the first yac pool went down... had to babysit each machine manually for a while... then read on what the timeout and retries arguments actually did...