home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dove!cme!libes
- From: libes@cme.nist.gov (Don Libes)
- Newsgroups: comp.lang.tcl
- Subject: Re: How do you make a unique file name in TCL?
- Message-ID: <20371@muffin.cme.nist.gov>
- Date: 14 Dec 92 17:36:21 GMT
- References: <51782@drilex.dri.mgh.com>
- Organization: National Institute of Standards and Technology
- Lines: 12
-
- In article <51782@drilex.dri.mgh.com> dricejb@drilex.dri.mgh.com (Craig Jackson) writes:
- >I'm working on translating a shell script to an expect script, and
- >it came time to translate stuff like "foo=/tmp/futz.$$". I discovered,
- >on searching the man pages, that their is no analog to $$ in TCL.
-
- I recently added "getpid" to Expect. It really belongs in the Tcl
- core but I'm not going to wait any longer. I've not released this yet
- because I'm in the middle of making major changes (e.g., Tk support).
- In the meantime, you can use the return value from spawn. If your
- spawned procs come and go, do "spawn cat" for now (ugh).
-
- Don
-