Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!pasteur!helios.ee.lbl.gov!nosc!cod!dberg From: dberg@cod.NOSC.MIL (David I. Berg) Newsgroups: comp.unix.questions Subject: Re: make temp files? Summary: $$ Message-ID: <1226@cod.NOSC.MIL> Date: 22 Sep 88 03:47:50 GMT References: <48200010@hcx1> Organization: Naval Ocean Systems Center, San Diego Lines: 14 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! > The symbolic variable $$ will take on the value of the process_id executing the shell. I use this all the time to create uniquely named temporary files; eg. /usr/tmp/$$. -- David I. Berg (dberg@nosc.mil) GENISYS Information Systems, Inc., 4250 Pacific Hwy #118, San Diego, CA 92110 MILNET: dberg@nosc.mil UUCP: {ihnp4 akgua decvax dcdwest ucbvax}!sdcsvax!noscvax!dberg