Greetings, I've tried to figure out why the read terminates the whole script. Disabling the set -e makes the script run almost fine. So it seems, that read has a non-zero exit status. Ignoring the error with 'read xx yy < "${TEMP}"' made the script run fine (without disabling set -e). "run fine" isn't exactly true. It failed later for an unrelated reason.
Regards Sven
pgplF7EwGCIG9.pgp
Description: Digitale Signatur von OpenPGP