Thanks so much, Roger and Mark!

Roger - That's excellent instructions regarding how to run Python in the Synology task scheduler. Thank you! It also reminds me that I can put my scripts directly onto the NAS's hard disk rather than pasting them in as code into the task scheduler. I was having trouble keeping it under the 8192-byte limit of that field, and this would simplify the process of iterating on the script versions.

Mark - Thanks so much, I'll try those things. Your note that "Kill" only sends a signal and that adding "exit 1" after the "Kill" command will stop the function from continuing to execute, is super useful. I'll give those things a try.

I don't know what you mean by removing the "trap" line makes the script seem to work... I don't see how yet, but I'll try it.

Thanks so much!
_________________________
Tony Fabris