Rick Stevens wrote:
Running interactively but not under cron usually indicates that you've forgotten that running under cron, you don't have the same environment as you do in an interactive session. So, make sure your environment is set correctly in the script (such as the PATH and such).
Thanks for the reply, Rick. I'm certainly aware of the issue. But note that I have four nearly identical sub-scripts, three of which work flawlessly and one of which reports the error only under cron. The error message seems network related, not environment related, though I don't know for sure what the error means.
rsync: safe_read failed to read 1 bytes [Receiver]: Connection reset by peer (104) rsync error: error in rsync protocol data stream (code 12) at io.c(276) [Receiver=3.1.3]
The only online reference I could find to that message suggested possible missing directories. But the scripts all use absolute pathnames and all of them do exist.