make temp files?
WU SHI-KUEI
wu at spot.Colorado.EDU
Thu Sep 22 00:59:50 AEST 1988
In article <48200010 at hcx1> ldh at hcx1.SSD.HARRIS.COM writes:
>
>I was wondering if there is some "readymade" way that a shell can create a
>unique temporary file, as in the C routine "mktemp(XXXXX)". Thanks!
Just use $$ somewhere in the file name - $$ expands to the current pid and is
guaranteed to be unique. For instance
temp.$$
will do just fine.
Just a guest here. In real life:
Carl Brandauer
{ncar|stcvax}!nbires!bdaemon!carl
More information about the Comp.unix.questions
mailing list