Hi if you are open to another option, I've used the "at" command to reschedule a script from itself. This would allow you to download a new version of the script and have it execute as you expect, without the recursive PID issue. like: echo ${0} | at now + 1 minute
Cheers.