Lâm Thị Yến Vy
Member
How do you run a script periodically in Linux?
Answer
If you want to run a command periodically, there’s 3 ways :
Answer
If you want to run a command periodically, there’s 3 ways :
- using the crontab command ex. * * * * * command (run every minutes)
- using a loop like : while true; do ./my_script.sh; sleep 60; done (not precise)
- using systemd timer.