From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Date: Wed, 12 Dec 2007 10:14:41 +0000 From: "Douglas A. Gwyn" Message-ID: <475F38E7.B32653B1@null.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: , <74D6B736-B261-44EC-B2AF-86ACC35E971A@mac.com> Subject: Re: [9fans] rc: token buffer too short Topicbox-Message-UUID: 15e6ac9e-ead3-11e9-9d60-3106f5b1d025 Pietro Gagliardi wrote: > What I could do instead is > u=/tmp/$0$pid$apid$0 > ... > but I'd rather not go that way to avoid possible collisions. Seems that there could be a filesystem that hands out unique names. Another similar approach would be for the open of a new special file to create a unique temp file, which would vanish upon final close, and have the app share/clone the file descriptor, which could be dup2()ed (or whatever Plan9 equivalent is) to stdout, stdin, etc., for the various processes in your script.