Bitcoin Forum
November 11, 2024, 03:21:17 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to use task scheduler with miner  (Read 213 times)
Bob1970 (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
December 09, 2017, 05:06:40 AM
 #1

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.
notlist3d
Legendary
*
Offline Offline

Activity: 1456
Merit: 1000



View Profile
December 09, 2017, 05:15:59 AM
 #2

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.
Bob1970 (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
December 09, 2017, 05:27:16 AM
 #3

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.
m1n1ngP4d4w4n
Full Member
***
Offline Offline

Activity: 224
Merit: 100

CryptoLearner


View Profile
December 09, 2017, 08:22:23 AM
 #4

use START "myname" /min "mycommand" to have your console show minimized or use /max to have it maximized.
black91
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
December 09, 2017, 11:00:44 AM
 #5

What is the reason we are doing such on and off for miner?
m1n1ngP4d4w4n
Full Member
***
Offline Offline

Activity: 224
Merit: 100

CryptoLearner


View Profile
December 09, 2017, 06:30:56 PM
 #6

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.
Bob1970 (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
December 09, 2017, 07:21:29 PM
 #7

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.
m1n1ngP4d4w4n
Full Member
***
Offline Offline

Activity: 224
Merit: 100

CryptoLearner


View Profile
December 09, 2017, 08:18:39 PM
 #8

Oh right that was the reason Smiley

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 ?
Bob1970 (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
December 09, 2017, 09:26:13 PM
 #9

Oh right that was the reason Smiley

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.

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!