.
Hi folks. I'm using Easy Buster64 2.4.1 and I have a physically-remote machine that is not immediately accessible and at a certain time each day, I need to be able to safely and reliably shutdown and poweroff the machine. Or, I can instead do a "shutdown after X minutes" arrangement instead.
I figure the best way is to make a shell script (".sh" file) that, either at a scheduled time or after X minutes of being called, issues the command that safely and reliably shuts down EasyOS and powers-off the machine.
Questions:
1. If I want to use a specific time, how do I schedule the run of a shell script file in EasyOS? Does "cron" work like on other Linux distros, or is there a special EasyOS-specific alternative way of doing it?
2. What is the best command to reliably and safely shutdown and poweroff EasyOS and the machine, so that there's no damage to background services/processes or filesystem damage, and the shutdown occurs every time without fail (no "getting stuck" etc.?)
Thanks guys!
.