Author

Topic: [YAC] switching pools by minerd in shell (Linux) (Read 1294 times)

sr. member
Activity: 322
Merit: 250
Supersonic
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...
hero member
Activity: 728
Merit: 500
cryptoshark
sr. member
Activity: 322
Merit: 250
Supersonic
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 Smiley

Option 1 : YNdaaBMPqCprh1WwieDjH6Lit4rCHmCvud (tips are special. even if monetary value may not seem a lot at the moment Smiley )
Option 2 : https://bitcointalksearch.org/topic/yac-bounty-thread-200311  add to the value for p2pool code bounty.
hero member
Activity: 728
Merit: 500
cryptoshark
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 Smiley
sr. member
Activity: 322
Merit: 250
Supersonic
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....
hero member
Activity: 728
Merit: 500
cryptoshark
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 Smiley
Jump to: