LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to determine which executables are called when running an application (https://www.linuxquestions.org/questions/linux-general-1/how-to-determine-which-executables-are-called-when-running-an-application-702804/)

frznchckn 02-06-2009 02:22 PM

How to determine which executables are called when running an application
 
Complex applications normally use many lower level binary/executables while running.

Is there any way I can determine what binaries an application calls while I'm using it?

jailbait 02-06-2009 02:28 PM

You could try the ltrace command:

http://linux.die.net/man/1/ltrace

-------------------
Steve Stites

frznchckn 02-06-2009 02:33 PM

Okay, what if my application is started via a shell script?

ltrace returns an error saying it can't open it.

I did run ltrace and just fed it 'ls'... it's a pretty sweet command.

jailbait 02-06-2009 02:47 PM

Quote:

Originally Posted by frznchckn (Post 3434495)
Okay, what if my application is started via a shell script?

ltrace returns an error saying it can't open it.

You could try running ltrace from within the script.

--------------------
Steve Stites

theNbomr 02-06-2009 03:36 PM

To see which executable will be found first in the default search path:
Code:

which ls
Having found the runnable file, if it is a compiled and linked binary object module, you can see what libraries are linked against it with ldd:
Code:

ldd /bin/ls
--- rod.


All times are GMT -5. The time now is 04:52 AM.