Follow

Ung, I wish had some sort of "redirect the stdout of a process to this file, but only if the process exits successfully'

(`sponge(1)` is a useful tool here..)

Β· Β· 1 Β· 0 Β· 3

I suppose "mktemp blah / command > tempfile / mv tempfile dest file" is as good as I'll get...

Show thread
Sign in to participate in the conversation
⛧ MOYTURA ⛧

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!