Re: help, how to generate a temp file name# Unix - 噫吁兮,危乎高哉
c*t
1 楼
I think he meant to use shell variables, hence [email protected] he mentioned.
Usually, the general method uses PID as part of the file name.
So if you have an unique program called mycgiprogram which temperarily
generate an HTML file, so you would specifiy a shell (/bin/sh)
variable:
TMPFILE=/tmp/mycgiprogram.$$.html
and put everything in $TMPFILE.
Usually, the general method uses PID as part of the file name.
So if you have an unique program called mycgiprogram which temperarily
generate an HTML file, so you would specifiy a shell (/bin/sh)
variable:
TMPFILE=/tmp/mycgiprogram.$$.html
and put everything in $TMPFILE.