Re: Get actual _full_ name of current executable, not via argv[0] on Linux
- From: Grant Edwards <invalid@invalid>
- Date: Tue, 14 Jul 2009 10:12:46 -0500
On 2009-07-14, Grant Edwards <invalid@invalid> wrote:
On 2009-07-14, Rainer Weikusat <rweikusat@xxxxxxxxxxx> wrote:
Alex Vinokur <alexvn@xxxxxxxxxxxxxxxxxxxxx> writes:
Is there any way to get actual _full_ name of current executable,
You can try reading the /proc/self/exe-symlink. But a file can
have many different names on a filesystem with hard link
support, so this may or may not help.
The executable may also have zero names. :)
OT: Did you ever wonder why in English the word "zero" is
treated as plural?
"zero names" "one name" "two names" "three names"
^ ^ ^
Is it that way in other languages?
--
Grant Edwards grante Yow! Those people look
at exactly like Donnie and
visi.com Marie Osmond!!
.
- Follow-Ups:
- Re: Get actual _full_ name of current executable, not via argv[0] on Linux
- From: Joe Pfeiffer
- Re: Get actual _full_ name of current executable, not via argv[0] on Linux
- From: Måns Rullgård
- Re: Get actual _full_ name of current executable, not via argv[0] on Linux
- References:
- Get actual _full_ name of current executable, not via argv[0] on Linux
- From: Alex Vinokur
- Re: Get actual _full_ name of current executable, not via argv[0] on Linux
- From: Rainer Weikusat
- Re: Get actual _full_ name of current executable, not via argv[0] on Linux
- From: Grant Edwards
- Get actual _full_ name of current executable, not via argv[0] on Linux
- Prev by Date: Re: Get actual _full_ name of current executable, not via argv[0] on Linux
- Next by Date: Re: Get actual _full_ name of current executable, not via argv[0] on Linux
- Previous by thread: Re: Get actual _full_ name of current executable, not via argv[0] on Linux
- Next by thread: Re: Get actual _full_ name of current executable, not via argv[0] on Linux
- Index(es):
Relevant Pages
|