Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ncar!boulder!spot!wu From: wu@spot.Colorado.EDU (WU SHI-KUEI) Newsgroups: comp.unix.questions Subject: Re: make temp files? Message-ID: <3605@boulder.Colorado.EDU> Date: 21 Sep 88 14:59:50 GMT References: <48200010@hcx1> Sender: news@boulder.Colorado.EDU Reply-To: wu@spot.Colorado.EDU (WU SHI-KUEI) Organization: University of Colorado, Boulder Lines: 15 In article <48200010@hcx1> ldh@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