I am running mining on Windows 10 Pro in Microsoft Azure using MSYS2 MinGW 64-bit.
My process to mine currently is:
OPEN a MSYS2 terminal (lets call this MSYS2 A), navigate to appropriate directory and run ./monerod --offline
OPEN another terminal of MSYS2 (lets call this MSYS2 B), navigate to appropriate directory and run ./monero-wallet-cli. Follow the instructions for loading a wallet. Enter start_mining [thread count]
Go back MSYS2 A, and run show_hr
My question: Is there any way to automate the process of starting mining in MSYS2 windows e.g. something equivalent of having a .bat file in a CMD window in a start menu.
Bonus question: Is there any way to be alerted if mining fails and to automatically restart the service?