Bitcoin Forum
May 27, 2024, 08:19:40 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Batch files to periodically restart miner in Windows.  (Read 847 times)
Vexual (OP)
Full Member
***
Offline Offline

Activity: 196
Merit: 100


View Profile
April 10, 2013, 11:24:21 PM
Last edit: April 12, 2013, 03:26:56 AM by Vexual
 #1

I use two simple batchfiles to periodically restart my miner in Windows.
It's useful if your miner ever crashes when you are away from your computer.


miner.bat

:loop
cgminer xxxxxxxxxxxxxxxxxxxxxxxxxxxxx(relevant options go here)
GOTO loop



restart.bat

:loop
timeout /t 3600
tskill cgminer
GOTO loop


Run both of these batch files to restart your miner at the desired interval.

1VEX7x76pJdreV1nJW8bXpotbCNggDxG5
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!