It seems there is no cron on Whatsminer I tried to search here even on Google I can't seem to find cron for Whatsminer except for Antminer.
So I guess your only option is to use a device that can automatically shut down and reboot the miner it might be a "programmable outlet timer" that looks like this below
https://i.ibb.co/3F6Hxj4/image.pngBut you will need an outlet timer that can support a high amp. Since Whatsminer m20s consumption is around 3360W you will need a 4100w outlet timer or around 20 amp.
I tried googling the same thing, that's why I asking here. Appreciated your effort!
Unfortunately this solution will not fit to my requirements, as exchange electricity prices (and thus profitability) are not predictable.
I could pay 3 cents / kWh today at 10am and 12 cents tomorrow at 10am.
I need something that will allow me to run actually code to calculate profitability every time electricity prices change.