Path: utzoo!attcan!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.unix.questions Subject: Re: How to find process name in c? Message-ID: <1990Jul18.101321.16302@virtech.uucp> Date: 18 Jul 90 10:13:21 GMT References: <23896@adm.BRL.MIL> Reply-To: cpcahil@virtech.UUCP (Conor P. Cahill) Organization: Virtual Technologies Inc., Sterling VA Lines: 22 In article <23896@adm.BRL.MIL> konczal@mail-gw.ncsl.nist.gov (Joseph C. Konczal) writes: > > From: "Conor P. Cahill" > Date: 15 Jul 90 01:59:57 GMT > > An easy way to see if a particular executable is running is to try > to open the file with write permissions. If you get the errno ETXTBSY, > the executable is being run. > >Where does this happen, what kind of Unix? I have overwritten >executable files that are currently running under various revisions of >BSD, SunOS, even VMS, without ever getting errno ETXTBSY. After the As a minimum it happens on System V.*, HP-UX, and Ultrix (that is all that I have access to at the momemt). Are you overwriting by unlinking the original as opposed to opening & writing on top of what was there? -- Conor P. Cahill (703)430-9247 Virtual Technologies, Inc., uunet!virtech!cpcahil 46030 Manekin Plaza, Suite 160 Sterling, VA 22170