From: | Richard Fish <bigfish@××××××××××.org> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | Re: [gentoo-user] OT: get process name in c++ | ||
Date: | Fri, 07 Jul 2006 22:16:07 | ||
Message-Id: | 7573e9640607071454l7309902enff8c38b775caca7d@mail.gmail.com | ||
In Reply to: | Re: [gentoo-user] OT: get process name in c++ by Uwe Thiem |
1 | On 7/7/06, Uwe Thiem <uwix@××××.na> wrote: |
2 | > How about: |
3 | > |
4 | > getenv( "_" ); |
5 | |
6 | Well, that is set by bash before it exec's anything, so that should |
7 | work, provided the program[s] are always exec'd by bash and not by |
8 | something else. It would be nicer if "_" was set by the kernel, or |
9 | even glibc. |
10 | |
11 | -Richard |
12 | -- |
13 | gentoo-user@g.o mailing list |
Subject | Author |
---|---|
Re: [gentoo-user] OT: get process name in c++ | Iain Buchanan <iaindb@××××××××××××.au> |