Actually, now that I think about it more, in a remote execution environment, it's possible that by the time the script gets run, it's not even running on the same machine, which means it'll have its own /tmp.  If that's the case, then my next thought is a NFS path to your home directory which is valid on any possible execution machine.  And pre-creating the file mode 0666 becomes more likely to be necessary.

On Nov 12, 2021, at 1:16 PM, Roy Smith <roy@panix.com> wrote:

No matter how screwed up your env, path, choice of shell, output redirection, etc are, that's pretty much guaranteed to dump some useful information into someplace where you can find it.