Bash Samples

back


Table of contents
  1. Bash Samples
    1. Automatically Run a Command Every N Minutes

Automatically Run a Command Every N Minutes

# Automatically Run a Command Every N Minutes
# How to Run or Repeat a Linux Command Every X Seconds
# Repeat a Unix command every x seconds
# https://askubuntu.com/questions/852070/automatically-run-a-command-every-5-minutes
# for (( i=0; i<=20; i++)); do echo "16733$i" ;sleep 1; done
for (( i=0; i<=20; i++)); do
  echo "$i" ;
  sleep 60;
done