in reply to self detecting script
This shell will spawn a second shell in memory that will execute your script and once ended (for any reason) restart it in 60 secs. So it's not running on the minute but we find it often does the job.#!/bin/sh (while true do <script> sleep 60 done ) &
|
|---|