run a script every 30 seconds using a cron job in Linux

run a script every 30 seconds using a cron job in Linux #!/bin/bash #cat script.sh while true; do # Your script commands go here /path/to/your/actual/script.sh sleep 30 done

#set cronjob

* * * * * /script.sh


Share on Google Plus

About Md. Shahzad Alam

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

0 comments:

Post a Comment