Plain Script to Restart your Miner Software After a Given Period of Time – Crypto Mining Blog

All About BTC, LTC, ETH mining spil well spil other alternative crypto currencies

Search

Categories

Latest Posts

Linksaf

There were some people asking for a elementary solution to automate the process of restarting a miner software every few hours te order to be sure that it is working fine under Windows OS. The below Batch opstopping code example offers a plain and effortless way to do that and it uses sandor’s fork of cpuminer for Gridseed Scrypt ASICs spil an example. You need to set the parameters based on the miner and instruction line you use spil well spil the time after which the miner process will be killed (default Four hours), then the script will wait for Ten seconds and embark the miner again. There is also a tegenstoot to showcase you the number of restarts that have bot executed since you’ve embarked the Batch script.

weerklank Plain script to restart your miner software after a period of time

set commandline=–freq=1150 –gc3355=\\.\COM1 –url=stratum+tcp://eu2.multipool.us:7777 –userpass=yourworker.1:password

begin “Miner Window” %executable% %commandline%

geluidsweerkaatsing The software will run for %runforseconds% seconds

taskkill /f /im %executable%

geluidsweerkaatsing Restarting the software te %restartinseconds% seconds (%counter%)

Te order to use the code above you just have to copy it and save spil a .BAT verkeersopstopping spil well spil to modify some of the variables spil vanaf your needs and requirements and then run it. Do note that you will get two program windows, one that will have the Batch script running and another for the miner software. You should not close the windows with the script running spil this will zekering the execution of the script instantaneously and the miner software will not be restarted anymore.

  • Te: General Informatie
  • Tags: miner software, miner software windows, restart miner software, restart miner software windows, windows automatic restart miner

17 Responses to Plain Script to Restart your Miner Software After a Given Period of Time

I wasgoed having issues on windows with the blades. One blade after an hr or two will druppel then the other will go after, the software still runs and gets work etc but blades dish out nothing, no hw errors even… I added –gc3355-timeout=120 to the bat opstopping and so far Trio days with no messing about…… I believe it restarts the miner if no share has bot submitted for overheen 120 seconds.. you can switch the settings spil desired. Mixed with the above code from the blog, glad days 🙂

could this work for other mining programs spil well. Specifically cudaminer?

Charlie, it can work for any program, you just have to set the name of the executable opstopping and the directive line options and you are ready to go.

Hi, thanks for that script 🙂

i’m having a problem on cudamier/ccminer: the miner process is not killed after the countdown for some reason (i then have numerous processes)

here are the only modifications i did on ccminer:

set commandline=-a x11 -o stratum+tcp://drkpool.com:3333 -u [myUserName].1 -p x

same with cudaminer:

set commandline=-a keccak -i 1 -l K10x28 -C 1 -m 1 -H 1 –url stratum+tcp://erebor.dwarfpool.com:3339 -u [myUserName].1 -p x

i’m demonstrating those Two directive lines that work on their own of course ([myUserName] substituted by the right one)

BountyBob, make sure you set the total executable verkeersopstopping name, including the .exe

Just tested the script with ccminer and it works just fine here.

i checked but rather than “SUCCESS: The process “ccminer.exe” has bot terminated”

i get an “ERROR: Not enough storage is available to accomplish this operation.”

it might be my antivirus preventing the script to kill another process i use comodo on win7 64

i’ll figure it out, thanks anyways admin :p

Could be, it is a strange error message that you are getting for sure.

all right after a few more tests i just had the confirmation: the “taskkill” guideline is indeed prevented by some antivirus/firewall without telling you or sending you terugkoppeling … it’s like a silent sandbox default mode

How to test is you are te this situation?

make a “restartScriptTest.bat” with your settings and “runforseconds=10” and check if the very first “Miner Window” is killed before a 2nd one pops

1. create your fresh “restartScript.bat”, launch it then close it (and the “Miner Window”) to make the antivirus aware of that brand fresh .bat

Two. go to your antivirus “File rating” section and te “Unrecognized Files” sort them by date to find your “restartScript.bat” at the top

Three. right click it and “Add to >, Trusted Files”

Four. relaunch your “restartScript.bat” then authorize internet access (use runforseconds=Ten to test if it kills “Miner Window” before making a fresh one)

Five. set back your runforseconds to a few hours and you are done 🙂

sorry for toegevoegd detailed explanations but it might help some :p

i just had my well deserved “SUCCESS”

Thank you SO MUCH for this. My miners loss efficiency after about half an hour to an hour and I’ve bot going crazy attempting do something like this without having to rely on toegevoegd API programs. Thanks again!

this not working,

the batch opstopping shut down an he attempts to open ccminer.exe –>, open and close quickly. nothing happens

how can i do on ccminer ? can i have some example ? thank you guys

Related movie: Doge Miners || DogeCoin URL-Miner [LEGIT]


Leave a Reply

Your email address will not be published. Required fields are marked *