Don’t suppose anyone has experience with sending stdout and stderr from a bash script through logger to a remote syslog host? Doing the normal exec > >(logger -blah) 2>&1 exits the script immediately even though logger reads from stdin (and other variants like exec > >(tai64n) 2>&1 work fine.)
Found a suggestion on SO that said exec > >(tee >(logger -blah)) 2>&1 which gets further than the non-tee version but bails out when the script is piping sqlite to a while loop.
(Other suggestions for how to get my bash scripts logging their stdin+stderr to a remote syslog via internal methods gratefully received. I may just have to add ... | logger -blah to the various places that invoke the scripts if it just cannot be done. But … ugh.)



![XKCD comic #3174 https://xkcd.com/3174/
transcript + explanation from ExplainXKCD wiki https://www.explainxkcd.com/wiki/index.php/3174:_Bridge_Clearance
transcript:
[There is a road heading into the distance under a bridge, with an off-ramp that veers off to the right. There are signs on the shoulders of both routes.]
[Left/forward-leading sign, on a pole leading up to support a pre-bridge 'hazard bar'. Both the edging of the sign and the overhead bar have diagonal warning stripes. The wording wraps across several lines, the initial line being underscored by a horizontal rule.]
Bridge
Clearance
10 ft 6 in
[Right-forking sign, on a pole that is seen going upwards off-frame.]
No Bridge
Clearance
46 Billion+
Light-years
Title text: A lot of the highway department's budget goes to adjusting the sign whenever the moon passes directly overhead.
explanation:
Roads passing under bridges (or other overhead structures) often have signs indicating the "clearance" or lowest height of the bridge above the road [...]
On a turn-off, leading away to the right to meet the higher-level route that passes over the current one, there's a different sign which says "no bridge", allowing the relevant vehicles to turn off and meet the higher-grade route. It does this while indicating a clearance of (more than) 46 billion light years. This sign indicates a (default) clearance on this stretch of highway that is based upon the approximate radius of the observable universe. [...]](https://files.mastodon.social/cache/media_attachments/files/115/635/858/205/513/554/small/bab45bf1e24e612a.png)