I have a bash script in Ubuntu, I want it to run every 10 minutes for example after it’s done. How can I do this? Thanks!
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can check
watch.From the man pages of
watchthe description sayswatch - execute a program periodically, showing output fullscreen, you can trywatch -n 600 my_script.shwhich will executemyscript.shevery 600 seconds i.e. 10 minutes.watchshows the output to full screen, you can redirect it to say/dev/nullin case you are not interested in the output to the screen.Hope this helps!