On 2010-10-01, Dale <[email protected]> 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!

