From: Grant Edwards <grant.b.edwards@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: oder of files opened by a process
Date: Fri, 1 Oct 2010 18:35:56 +0000 (UTC) [thread overview]
Message-ID: <i859mc$rm3$1@dough.gmane.org> (raw)
In-Reply-To: 4CA60C7A.20301@gmail.com
On 2010-10-01, Dale <rdalek1967@gmail.com> wrote:
> Al wrote:
>> Hello,
>>
>> I want to find out by which file and line the */temp/environment
>> script is run or sourced.
>>
>> As a am always interested in a general way to solve something, I ask
>> if there is a tool, that displays me the order in which files are
>> read by a process.
> I'm not sure but you may want to check into strace. It may be what you
> are looking for.
strace fills the bill if you know what process (or its children) you
want to watch, and you can start that process manually.
If you don't know what process you want to watch, or there are a set
of unrelated processes, strace isn't very useful. In that case you
can use systemtap to monitor open operations on a particular file.
It takes a bit more work to use systemtap than it does to use strace,
but in many ways it's a lot more flexible and powerful:
http://sourceware.org/systemtap/
--
Grant Edwards grant.b.edwards Yow! And then we could sit
at on the hoods of cars at
gmail.com stop lights!
prev parent reply other threads:[~2010-10-01 18:36 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-01 15:29 [gentoo-user] oder of files opened by a process Al
2010-10-01 16:29 ` Dale
2010-10-01 17:00 ` Darren Kirby
2010-10-02 15:41 ` David Relson
2010-10-01 17:25 ` Al
2010-10-01 17:51 ` [gentoo-user] " walt
2010-10-01 19:05 ` Paul Hartman
2010-10-01 18:14 ` [gentoo-user] " Dale
2010-10-01 18:38 ` Al
2010-10-01 19:07 ` Dale
2010-10-01 19:19 ` Al
2010-10-01 20:37 ` Volker Armin Hemmann
2010-10-01 20:48 ` Al
2010-10-01 18:36 ` [gentoo-user] " Grant Edwards
2010-10-01 18:47 ` Al
2010-10-01 18:56 ` Grant Edwards
2010-10-01 19:01 ` Al
2010-10-01 19:16 ` Dale
2010-10-01 19:23 ` Al
2010-10-01 19:38 ` Grant Edwards
2010-10-01 20:37 ` Al
2010-10-01 19:26 ` Grant Edwards
2010-10-01 19:33 ` Florian CROUZAT
2010-10-01 19:45 ` Al
2010-10-01 19:59 ` Grant Edwards
2010-10-01 20:39 ` Volker Armin Hemmann
2010-10-01 21:07 ` Grant Edwards
2010-10-01 19:35 ` Darren Kirby
2010-10-01 19:41 ` Al
2010-10-01 19:52 ` Darren Kirby
2010-10-01 20:07 ` Al
2010-10-01 20:36 ` Darren Kirby
2010-10-01 22:06 ` Al
2010-10-01 21:01 ` Grant Edwards
2010-10-01 21:13 ` Al
2010-10-01 18:35 ` Grant Edwards [this message]
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='i859mc$rm3$1@dough.gmane.org' \
--to=grant.b.edwards@gmail.com \
--cc=gentoo-user@lists.gentoo.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