From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1FyxRj-0004Qz-5v for garchives@archives.gentoo.org; Fri, 07 Jul 2006 21:01:07 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k67KxfH7022292; Fri, 7 Jul 2006 20:59:41 GMT Received: from smtp1.iway.na (smtp1.iway.na [196.44.136.15]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k67KsCgm029565 for ; Fri, 7 Jul 2006 20:54:13 GMT Received: from vscan.iway.na (vscan.iway.na [196.44.136.13]) by smtp1.iway.na (Postfix) with ESMTP id 414F7B78B1 for ; Fri, 7 Jul 2006 21:54:10 +0100 (WAT) Received: from mx2.iway.na (localhost [127.0.0.1]) by vscan.iway.na (Postfix) with ESMTP id 6DC8060D45 for ; Fri, 7 Jul 2006 21:54:08 +0100 (WAT) Received: from uwix.alt.na ([196.44.156.172]) by mx2.iway.na (Netscape Messaging Server 4.15) with ESMTP id J21WQ802.J1C for ; Fri, 7 Jul 2006 21:54:08 +0100 Received: from uwe by uwix.alt.na with local (Exim 4.62) (envelope-from ) id 1FyxKR-0003Vo-WA for gentoo-user@lists.gentoo.org; Fri, 07 Jul 2006 21:53:36 +0100 From: Uwe Thiem Organization: SysEx (Pty) Ltd. To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] OT: get process name in c++ Date: Fri, 7 Jul 2006 21:53:35 +0100 User-Agent: KMail/1.9.3 References: <1151499883.17966.13.camel@orpheus> <1152248749.31828.7.camel@orpheus> <7573e9640607071014v5bd571a0nd265fc30f58685a6@mail.gmail.com> In-Reply-To: <7573e9640607071014v5bd571a0nd265fc30f58685a6@mail.gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607072153.35550.uwix@iway.na> Sender: Uwe Thiem X-Archives-Salt: 049facac-3560-4906-a0f0-98acb7328f6e X-Archives-Hash: 853c982b8f48fb8f45a382849ebc0dfb On 07 July 2006 18:14, Richard Fish wrote: > On 7/6/06, Iain Buchanan wrote: > > but I don't have just one main.c, I have 20+ different apps, each with > > their own main.c, which I don't maintain, for which I'd have to issue > > Ah, ok, sorry, I missed that part. > > So, can I ask /why/ you need the process name in this class? How about: getenv( "_" ); Uwe -- Mark Twain: I rather decline two drinks than a German adjective. http://www.SysEx.com.na -- gentoo-user@gentoo.org mailing list