MHTview is a Bash script that allows you to view HTML email messages
The canonical Unix environment variable name for the temporary
directory is TMPDIR, not TMP.
Creating temporary file names using `date +%s` creates a race
condition. Use the mktemp command instead.
Eike Rathke <erack-nutznetz.n@posteo.de> wrote:
The canonical Unix environment variable name for the temporary
directory is TMPDIR, not TMP.
Do you have a source for this? Preferrably with other best-practice
tips, but not necessarily.
Creating temporary file names using `date +%s` creates a race
condition. Use the mktemp command instead.
I know `mktemp' but I've never researched its portability. If it's
portable enough, I'll probably switch to that technique.
The canonical Unix environment variable name for the temporary
directory is TMPDIR, not TMP.
See References section of https://en.wikipedia.org/wiki/TMPDIR
Or the Linux environ(7) manual page.
Creating temporary file names using `date +%s` creates a race
condition. Use the mktemp command instead.
https://stackoverflow.com/questions/2792675/how-portable-is-mktemp1
* Dario Niedermann, 2017-06-07 20:43 UTC:
Eike Rathke <erack-nutznetz.n@posteo.de> wrote:
The canonical Unix environment variable name for the temporary
directory is TMPDIR, not TMP.
Do you have a source for this? Preferrably with other best-practice
tips, but not necessarily.
See References section of https://en.wikipedia.org/wiki/TMPDIR
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 00:42:14 |
Calls: | 10,387 |
Calls today: | 2 |
Files: | 14,061 |
Messages: | 6,416,723 |