Article 5GVMA bash script to run miner when computer is idle, then kill when user activity starts again;

bash script to run miner when computer is idle, then kill when user activity starts again;

by
mattdawolf
from LinuxQuestions.org on (#5GVMA)
What would be a good way to write a script so

nice -n 10 /opt/ethminer/bin/ethminer -G -P stratum1+tcp://null:2020

rums when the computer is inactive and stops when there is user activity, never truly exiting so it can loop? Thanks.latest?d=yIl2AUoC8zA latest?i=4qI3i-kopmQ:IMoIAgE_xBM:F7zBnMy latest?i=4qI3i-kopmQ:IMoIAgE_xBM:V_sGLiP latest?d=qj6IDK7rITs latest?i=4qI3i-kopmQ:IMoIAgE_xBM:gIN9vFw4qI3i-kopmQ
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments