3 ms·
How do you use O_TMPFILE from a shell script?
by jwilk 9y ago
How do you use O_TMPFILE from a shell script?
- hossbeast 9y agoYou can't use it directly from bash, but its readily available in perl, with the POSIX module. Even in bash, you can unlink your temp files before you use them, and pass them around by file descriptor rather than by name.
- jwilk 9y ago> its readily available in perl, with the POSIX module Oh? I don't see anything like this in the Perl codebase. On the other hand, O_TMPFILE is available in Python since 3.4: https://docs.python.org/3/whatsnew/3.4.html#os https://docs.python.org/3/whatsnew/3.4.html#os