🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.eunice
Article #105

Re: crp files, unique process names

#105
From: Lew Mullen
Date: Thu, 30 Aug 1984 16:13
29 lines
1434 bytes
--- REFERENCED ARTICLE ---------------------------------------------

>Has anyone else had files named "crp" show up in your directories?
>
 .....
>has anyone figured out how to create unique process name related
>files for files that stay around after a process "dies."  In

--------------------------------------------------------------------

crp files are, of course, junk from "awk" ... leftover debug code ?

volume one, section 3 has a call "mktemp()" to do this.
Chip Rosenthal wrote this to make it available from shell:

/* 
 * mktemp: return a unique file name
 *   example:  set tempfile=`mktemp /tmp/foo`
 */
main(argc,argv)
int argc;
char argv;
{
    char buf[64];
    strcpy(buf,argv[1]);
    strcat(buf,"XXXXXX");
    mktemp(buf);
    puts(buf);
}
Technical Details
Message-ID: <1079@t4test.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxl!houxm!vax135!cornell!uw-beaver!tektronix!hplabs!intelca!t4test!lew
References: <380@intelca.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83; site t4test.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxl!houxm!vax135!cornell!uw-beaver!tektronix!hplabs!intelca!t4test!lew
From: lew@t4test.UUCP (Lew Mullen)
Newsgroups: net.eunice
Subject: Re: crp files, unique process names
Message-ID: <1079@t4test.UUCP>
Date: Thu, 30-Aug-84 12:13:55 EDT
Article-I.D.: t4test.1079
Posted: Thu Aug 30 12:13:55 1984
Date-Received: Mon, 3-Sep-84 08:47:45 EDT
References: <380@intelca.UUCP>
Distribution: net.all
Organization: Intel, Santa Clara, Ca.
Lines: 29
Summary: Unique process names