<div dir="ltr"><div><div><div><div><div>How about something much simpler...<br><br></div>#!/bin/sh<br></div>while /bin/true; do<br></div> bfgminer <various command line params></div> sleep 10 #wait a bit so if there's a real problem you don't hammer the server<br>
</div>done<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 13, 2014 at 8:32 PM, Michael W. Hall <span dir="ltr"><<a href="mailto:hallmw@att.net" target="_blank">hallmw@att.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ok. I have a question. I am mining BTC. Have been since February. I<br>
am running bfgminer. I have it running, but would like to improve it.<br>
When I am away from home (work or vacation), the bfgminer program will<br>
stop.<br>
<br>
I know I can do it just not sure how to go about it. I would like the<br>
system to check every 5 minutes or so if the bfgminer is running. If it<br>
is then do nothing. If it is not then I would like to restart. I have<br>
to start the program like so,<br>
<br>
bfgminer <various command line params><br>
<br>
Any ideas on the best way to do this?<br>
<br>
Thanks,<br>
Michael<br>
<br>
_______________________________________________<br>
LUNA mailing list<br>
<a href="mailto:LUNA@lunagroup.us">LUNA@lunagroup.us</a><br>
<a href="http://lunagroup.us/mailman/listinfo/luna" target="_blank">http://lunagroup.us/mailman/listinfo/luna</a><br>
<br>
</blockquote></div><br></div>