home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / tcl / 2107 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  968 b 

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