From: "e m" <eyubo@hotmail.com>
To: arjan@infradead.org
Cc: linux-kernel@vger.kernel.org
Subject: Re: path_lookup for executable
Date: Mon, 20 Nov 2006 19:14:33 +0000 [thread overview]
Message-ID: <BAY107-F203123A8A58AB4F1F8E38AABED0@phx.gbl> (raw)
In-Reply-To: <1164009958.31358.564.camel@laptopd505.fenrus.org>
Thanks for response. Is there any other way to identify if "current" is a
certain program such as java. You cannot surely go by name (comm field of
task_struct). Since It could be linked. In another word, I want to identify
the executing current program. Any help appreciated.
Thanks,
Eyub
>From: Arjan van de Ven <arjan@infradead.org>
>To: e m <eyubo@hotmail.com>
>CC: linux-kernel@vger.kernel.org
>Subject: Re: path_lookup for executable
>Date: Mon, 20 Nov 2006 09:05:57 +0100
>
>On Mon, 2006-11-20 at 04:00 +0000, e m wrote:
> > I am trying to get inode for an executable program. For example, I wish
>to
> > get inode for /usr/jdk/bin/java file in a module. The following call
>always
> > return an error. Is there a way to get the inode of current process,
> > assuming I have access to "current"
>
>
>Hi,
>
>what makes you think the current executable has any meaning? It can be
>unlinked, renamed or moved in the directory hierarchy since the program
>was started... (and if you would go by inode number.. then there's
>multiple answers possible)
>
>
_________________________________________________________________
Share your latest news with your friends with the Windows Live Spaces
friends module.
http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mk
next prev parent reply other threads:[~2006-11-20 19:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-20 4:00 e m
2006-11-20 8:05 ` Arjan van de Ven
2006-11-20 19:14 ` e m [this message]
2006-11-20 19:27 ` Arjan van de Ven
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BAY107-F203123A8A58AB4F1F8E38AABED0@phx.gbl \
--to=eyubo@hotmail.com \
--cc=arjan@infradead.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®