Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: Bob1970 on December 09, 2017, 05:06:40 AM



Title: How to use task scheduler with miner
Post by: Bob1970 on December 09, 2017, 05:06:40 AM
I was wondering if anyone can guide me on using windows task scheduler with a miner to turn it on and off at certain times. I'm using EWBF's CUDA Miner. I have task scheduler start the bat file that runs the miner, and it kind of works. It will open the miner and run it, but the command window does not show, but the miner process does run and is mining. To close it I have tried using taskkill but it is not closing it, nor does running a batch file with taskkill command in it either.

Can someone guide me on how I can get this to work? I dont mind the command window not showing, but getting the miner to shut off is essential.


Title: Re: How to use task scheduler with miner
Post by: notlist3d on December 09, 2017, 05:15:59 AM
I was wondering if anyone can guide me on using windows task scheduler with a miner to turn it on and off at certain times. I'm using EWBF's CUDA Miner. I have task scheduler start the bat file that runs the miner, and it kind of works. It will open the miner and run it, but the command window does not show, but the miner process does run and is mining. To close it I have tried using taskkill but it is not closing it, nor does running a batch file with taskkill command in it either.

Can someone guide me on how I can get this to work? I dont mind the command window not showing, but getting the miner to shut off is essential.

It's been a long time since I have done a batch file with taskkill.  Have you tried using the /f parameter in your taskkill command?  I would look into the command a little more as it should be able to kill mining task.

I would work on getting the command to work first then focus on the batch file.  Also you might post your batchfile and see if anyone notices anything to help.


Title: Re: How to use task scheduler with miner
Post by: Bob1970 on December 09, 2017, 05:27:16 AM
I was wondering if anyone can guide me on using windows task scheduler with a miner to turn it on and off at certain times. I'm using EWBF's CUDA Miner. I have task scheduler start the bat file that runs the miner, and it kind of works. It will open the miner and run it, but the command window does not show, but the miner process does run and is mining. To close it I have tried using taskkill but it is not closing it, nor does running a batch file with taskkill command in it either.

Can someone guide me on how I can get this to work? I dont mind the command window not showing, but getting the miner to shut off is essential.

It's been a long time since I have done a batch file with taskkill.  Have you tried using the /f parameter in your taskkill command?  I would look into the command a little more as it should be able to kill mining task.

I would work on getting the command to work first then focus on the batch file.  Also you might post your batchfile and see if anyone notices anything to help.

I actually just got it to work. I had to set the task for ending it to run with highest privelages.

Now the only thing I wish I could get working is for the command box to stay up when its running. Its not a big deal but would prefer if it did.


Title: Re: How to use task scheduler with miner
Post by: m1n1ngP4d4w4n on December 09, 2017, 08:22:23 AM
use START "myname" /min "mycommand" to have your console show minimized or use /max to have it maximized.


Title: Re: How to use task scheduler with miner
Post by: black91 on December 09, 2017, 11:00:44 AM
What is the reason we are doing such on and off for miner?


Title: Re: How to use task scheduler with miner
Post by: m1n1ngP4d4w4n on December 09, 2017, 06:30:56 PM
What is the reason we are doing such on and off for miner?

What do you mean ? Why switching algo ? simple, the more difficult the network of a coin is, the less coin you get, so the trick is to mine when difficulty is low to max out your profit.


Title: Re: How to use task scheduler with miner
Post by: Bob1970 on December 09, 2017, 07:21:29 PM
What is the reason we are doing such on and off for miner?

I have a small office with about 10 computers that are only used during standard business hours. Most of them have a basic nvidia card in them, so I figured them working all together during closed hours and the weekend, perhaps in 6 months, a year or so it might equal out to a little something. I wanted to automate the startup/stop mining process at specific time so it doesnt effect the computers during business hours. We also have solar panels so there wont be electricity costs as we generate more than we use daily, even running overnight. The extra electricity isnt making us any money, in my area the power companies wont buy excess power, they will only zero out your meter.

I dont really want to get into shelling out money to build a farm and all that, I missed that bandwagon years ago.


Title: Re: How to use task scheduler with miner
Post by: m1n1ngP4d4w4n on December 09, 2017, 08:18:39 PM
Oh right that was the reason :)

If it's your business and it run on free electricity, you will do profit, but not by much. Good luck still, did my cmd worked for you ?


Title: Re: How to use task scheduler with miner
Post by: Bob1970 on December 09, 2017, 09:26:13 PM
Oh right that was the reason :)

If it's your business and it run on free electricity, you will do profit, but not by much. Good luck still, did my cmd worked for you ?

I will try it at some point. Ive got most of them running with the task scheduler is working.

The electricity isnt exactly 'free' other than the sense that we dont pay per kwh, but we did pay for the panels and all that but we arent leasing them. No sense in wasting excess energy though.