🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.xerox
Article #370

Expunging on SUMEX from InterLisp

#370
From: John Sullivan
Date: Mon, 23 Nov 1987 19:53
23 lines
1628 bytes
I have a program which saves intermediate results to a file, usually but
not necessarily on SUMEX.  What I want it to do is:
(1) Check if the given file name already exists.  If it does, copy its
    contents to a temporary file.
(2) Delete the given file name.
(3) Open the (now-empty) file, and write stuff to it, and close it.
(4) Delete the temporary file.
(5) Do some other stuff, then go back to (1).

The temporary file is in case something ugly happens while the given
file name is being written.  This all works fine, with one problem:
Step (2) doesn't actually get rid of the given file, it just (apparently)
marks it as deleted, so if the above 5 steps are done, say, 10 times
I end up with 10 versions of the given file name on SUMEX.  I only
want one version.  It seems if there was some way to do an EXPUNGE on
SUMEX just after step (2) the problem would be solved.  Does anyone
know if this is possible?  Or is there some better solution that I
haven't thought of?  

Thank you very much,

John Sullivan
-------
Technical Details
Message-ID: <12352966781.65.SULLIVAN@SUMEX-AIM.STANFORD.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!rutgers!ames!ucbcad!ucbvax!SUMEX-AIM.STANFORD.EDU!SULLIVAN

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!rutgers!ames!ucbcad!ucbvax!SUMEX-AIM.STANFORD.EDU!SULLIVAN
From: SULLIVAN@SUMEX-AIM.STANFORD.EDU (John Sullivan)
Newsgroups: comp.sys.xerox
Subject: Expunging on SUMEX from InterLisp
Message-ID: <12352966781.65.SULLIVAN@SUMEX-AIM.STANFORD.EDU>
Date: Mon, 23-Nov-87 14:53:11 EST
Article-I.D.: SUMEX-AI.12352966781.65.SULLIVAN
Posted: Mon Nov 23 14:53:11 1987
Date-Received: Thu, 26-Nov-87 07:17:53 EST
Sender: usenet@ucbvax.BERKELEY.EDU
Organization: The ARPA Internet
Lines: 23