Answer the question
In order to leave comments, you need to log in
bash. How to do without cron and execute several commands every day at 5 am?
Good afternoon.
There is a task to do without cron and execute several commands every day at 5 am using a Bash script.
How can this be done correctly?
In fact, you need to check the time and when it is reached then execute 3 commands.
thanks in advance
Answer the question
In order to leave comments, you need to log in
Hire a person who will get up every day at 4-55 on an alarm clock and run a script, to be sure, hire several.
Write service. see systemd. In any case, there must be some kind of service. Well, or kick him constantly, outside or in an endless loop.
There is a team at
. But, unlike cron, you will have to "set the alarm" every time for 5 o'clock the next day. For example, immediately after executing the given commands, do "automatic winding of the alarm clock".
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question