Bitcoin Forum

Bitcoin => Mining support => Topic started by: dnaleor on July 29, 2013, 10:42:23 PM



Title: batch file - automatic restart of CGminer
Post by: dnaleor on July 29, 2013, 10:42:23 PM
Hi!

I'm just a noob with batch files (only wrote some simple ones) and now i'm hitting a wall.
(already searched the net for answers...)

I tried to create a batch file that would restart my CGminer every hour. Reason: sometimes my miners disconnect randomly. By restarting every hour I will minimize the loss of mined coins ;)

I already found some code for timed actions, but now I'm first trying to get some input in CGminer when it runs.
I wanted to automatically type 's c y" to restart the program (settings-cgminer_restart-yes)

I use the "echo input.txt | cgminer.exe"
but all I get is 'redirection is not supported'

Is there a workaround or someone who does this in a completly different way (maybe even without batch files)

thx in advance!


Title: Re: batch file - automatic restart of CGminer
Post by: wedgy2k on July 29, 2013, 11:01:36 PM
Try this, it's different class

https://bitcointalk.org/index.php?topic=159267.0


Title: Re: batch file - automatic restart of CGminer
Post by: dnaleor on July 29, 2013, 11:18:35 PM
Try this, it's different class

https://bitcointalk.org/index.php?topic=159267.0

ok, that seems an easy solution...

Feeling stupid now, with my batch-attempt :P

thx for the info! :D


Title: Re: batch file - automatic restart of CGminer
Post by: MBTY on June 21, 2014, 11:11:54 PM
You also can try this http://dwwb.ru/MineRestarter
Translated: https://translate.google.ru/translate?sl=ru&tl=en&u=http%3A%2F%2Fdwwb.ru%2FMineRestarter


Title: Re: batch file - automatic restart of CGminer
Post by: tuanvie on June 23, 2014, 12:59:47 PM
I CGminer users.
when it was running my PC directly stuck and can not work anymore, when I restart the new normal,
where lies the problem, if my PC is error?
I use windows 7 x 86