Bitcoin Forum
September 26, 2018, 04:02:38 AM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Schedule mining with CGminer?  (Read 1636 times)
GriffinHeart
Full Member
***
Offline Offline

Activity: 182
Merit: 100


Hello there!


View Profile
November 26, 2015, 05:12:49 PM
 #1

So I have a good reason to do this, but I have no idea how...
Is there any way to start the program automatically on a schedule?
I haven't the faintest idea how to do this automatically and I don't fancy waking up, racing home from work and the whole dizzle every six hours. I've searched for it on the forum as I read something awhile back about someone setting a schedule for his instances.
Anyone got some advice?

Hi there, I'm from South Africa.
This means I'm poor, I guess.
1537934558
Hero Member
*
Offline Offline

Posts: 1537934558

View Profile Personal Message (Offline)

Ignore
1537934558
Reply with quote  #2

1537934558
Report to moderator
1537934558
Hero Member
*
Offline Offline

Posts: 1537934558

View Profile Personal Message (Offline)

Ignore
1537934558
Reply with quote  #2

1537934558
Report to moderator
1537934558
Hero Member
*
Offline Offline

Posts: 1537934558

View Profile Personal Message (Offline)

Ignore
1537934558
Reply with quote  #2

1537934558
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1537934558
Hero Member
*
Offline Offline

Posts: 1537934558

View Profile Personal Message (Offline)

Ignore
1537934558
Reply with quote  #2

1537934558
Report to moderator
1537934558
Hero Member
*
Offline Offline

Posts: 1537934558

View Profile Personal Message (Offline)

Ignore
1537934558
Reply with quote  #2

1537934558
Report to moderator
jonnybravo0311
Legendary
*
Offline Offline

Activity: 1344
Merit: 1015


Mine at Jonny's Pool


View Profile WWW
November 26, 2015, 06:07:48 PM
 #2

You mean something like running it from 4:00 to 11:00 daily?  You could always have a cron job manage that for you.

Jonny's Pool - Mine with us and help us grow!  Support a pool that supports Bitcoin, not a hardware manufacturer's pockets!  No SPV cheats.  No empty blocks.
Amph
Legendary
*
Offline Offline

Activity: 1988
Merit: 1001



View Profile
November 27, 2015, 07:43:04 AM
 #3

you can also create a simple bat file to make a loop in the time frame you need cgminer to start and close

it should be very simple to do, here a thread about it https://bitcointalk.org/index.php?topic=172181.0
whizz94
Full Member
***
Offline Offline

Activity: 153
Merit: 100


Solar Bitcoin Specialist


View Profile WWW
December 07, 2015, 08:29:46 PM
 #4

Another way to do it is to have modified the python script in a stratum proxy at your location.
You start your modified stratum proxy with your usual pool.com:3333 ipv4:port and it can contain anything which you can write in python such as time dependent delays,
You give 192.168.0.101:3333 or the ipv4:port of your stratum proxy to cgminer as the target.

If you have more than one cgminer those can all point to one stratum proxy with scheduler.
This appproch can have the equivalent of "if hour>18 or hour<6 then wait for 1 hour" at the getNextShare so it can be used so that your scheduler halts your cgminer immediately after it has sent off a share.

Let us know how you get on.
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2660
Merit: 1143


Ruu \o/


View Profile WWW
December 07, 2015, 08:33:10 PM
 #5

I don't suppose you've looked at the help menu of cgminer or its readme?

Code:
--sched-start       Set a time of day in HH:MM to start mining (a once off without a stop time)
--sched-stop        Set a time of day in HH:MM to stop mining (will quit without a start time)

Developer/maintainer for cgminer and ckpool/ckproxy.
ZERO FEE Pooled mining at ckpool.org, 1% Fee Solo mining at solo.ckpool.org
-ck
whizz94
Full Member
***
Offline Offline

Activity: 153
Merit: 100


Solar Bitcoin Specialist


View Profile WWW
December 07, 2015, 09:45:13 PM
 #6

I don't suppose ...
I'd try what -ck just wrote.
Monnt
Legendary
*
Offline Offline

Activity: 910
Merit: 1000


View Profile
December 07, 2015, 10:40:29 PM
 #7

Cron job. Or you could use the Windows task scheduler. I use that to idle in some of my games Cheesy, Or you could even just code yourself a simple batch file.
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2660
Merit: 1143


Ruu \o/


View Profile WWW
December 08, 2015, 05:17:05 AM
 #8

Funny how people keep coming up with external solutions when the function is already built into cgminer  Roll Eyes

Developer/maintainer for cgminer and ckpool/ckproxy.
ZERO FEE Pooled mining at ckpool.org, 1% Fee Solo mining at solo.ckpool.org
-ck
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!