Xref: utzoo comp.unix.programmer:1902 comp.unix.questions:31634 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!mintaka!bloom-beacon!eru!kth.se!ugle.unit.no!ugle.unit.no!dag From: dag@kvatro.no (Dag H. Wanvik) Newsgroups: comp.unix.programmer,comp.unix.questions Subject: Global symbolic process names, anyone? Message-ID: Date: 24 May 91 16:46:48 GMT Sender: news@ugle.unit.no Distribution: comp Organization: Kvatro A/S, Trondheim, Norway Lines: 31 I am trying to let several Unix processes be able to "address" each other by mapping a symbolic name to a process id. I've so far found no other way of doing this than using the global name space as represented by the file system, letting each file contain the pid of the process whose "name" is the file name. I could do this using permanent files except I am not confident I will be able to delete them when the processes terminate in an abnormal way. I know about tmpfile/tmpnam/tempnam, but I want a more direct way to make a file temporary, if possible. a) Is it possible to make any file temporary when creating it? (or by setting a mode bit (undocumented?!). (I need to fully control the file name, which is not possible using tmpfile and friends...) b) Am I totally on the wrong track? Is there a better way to create a global name map (symbol -> pid) functionality? Any help woulf be much appreciated! Dag -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Dag H. Wanvik , Senior Systems Engineer Mailing address: KVATRO AS, Pirsenteret, N-7005 Trondheim, NORWAY Telephone : +47 7 520090 Fax : +47 7 520140 Internet e-mail: wanvik@kvatro.no [my VAX/VMS address] or : dag@kvatro.no [my Unix address] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~