How to include a timer in Bash Scripting?

后端 未结 6 2158

Good day! Is there any way to include a timer (timestamp?or whatever term it is) in a script using bash? Like for instance; every 60 seconds, a specific fun

6条回答
  •  孤城傲影
    2020-12-09 13:50

    You may want to do a man cron.

    Or if you just have to stick to bash just put the function call inside a loop and sleep 60 inside the iteration.

提交回复
热议问题