Crates.io | mining-scheduler |
lib.rs | mining-scheduler |
version | 0.2.0 |
source | src |
created_at | 2021-05-13 03:30:03.018881 |
updated_at | 2021-05-13 03:46:02.294056 |
description | A program that stops and starts a process based on other currently open processes. |
homepage | |
repository | http://github.com/TypicalFork/mining-scheduler/ |
max_upload_size | |
id | 396786 |
size | 19,549 |
A program that stops and starts a process based on other currently open processes. It was initially designed to stop and start a crypto-miner depending on whether a game was open, but it can be applied to any other use case.
mining-scheduler schedule [FLAGS] <MINER> <CONFIG>
where <MINER>
is the path to the miner, and <CONFIG>
is an absolute or relative path to a text file which contains the names of the processes, that when running, should cause the miner to be shutdown. There should be one process name on each line of the file. If the -i
flag is set, the processes are treated in a case insensitive manner. schedule
also has two optional parameters: -v [1-3]
, which sets the verbosity level (the higher, the more verbose), and -t [uint]
, which specifies how often the program checks the running processes.
To make it easier to find process names, the processes
subcommand can be called (mining-scheduler processes
), which will list the names of all currently running processes.