Is there a way to create a unique temporary filename inside a shell
,outside writing a “utility”. This seems so basic, there’s got to
be a way, but I can’t find anything in the doc.
- Mario
Is there a way to create a unique temporary filename inside a shell
,outside writing a “utility”. This seems so basic, there’s got to
be a way, but I can’t find anything in the doc.
Previously, Mario Charest wrote in comp.os.qnx:
Is there a way to create a unique temporary filename inside a shell
,outside writing a “utility”. This seems so basic, there’s got to
be a way, but I can’t find anything in the doc.
- Mario
Apparently, BSD has a command called “mktemp”. I couldn’t find it on QSSL’s site.
How about a hack, like: /bin/ls $DIR | /bin/tail -1
$$
Mario Charest wrote:
Is there a way to create a unique temporary filename inside a shell
,outside writing a “utility”. This seems so basic, there’s got to
be a way, but I can’t find anything in the doc.
- Mario
I’ve used something like this before:
export TMPFILE=date “+FILE%m%d%y%H%M%S.txt”
Works unless you are creating more than one file per second.
Howard