Execute process each interval of seconds

/ Published in: Bash
Save to your folder(s)

Useful to use with crontab for allowing schedule a process below of the minute scope.

Copy this code and paste it in your HTML
  1. #! /bin/bash
  2. for (( c=1; c<={number-of-times}; c++ ))
  3. do
  4. process.sh
  5. sleep {seconds}s
  6. done

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.