A shell script can be utilized to execute a task at a specified time in the background, even when access to scheduling tools is not available. The script calculates the difference in seconds between the current time and the desired execution time. If the calculated difference is negative, indicating that the time has already passed for the day, it will adjust by sleeping for the remaining time until the next day. Conversely, if the time is still to come, it will simply sleep for the calculated difference before executing the specified command.
Source Link