vanka
vanka

Reputation: 3

Can a bash script access information from a C executable it takes as parameter?

To be more concrete, I have a C executable and I want to know in my bash script the execution time of a function from that C. I also want to know if I can find out what is the value of a certain variable from that file .

PS: I don't want to output on the console the things I need from the C file and then to read that output in the script

Upvotes: 0

Views: 60

Answers (1)

matz
matz

Reputation: 656

Short answer is no.

Longer answer is no, but have a look at profilers to measure the execution time of a program (e.g. gprof) and debuggers to inspect value of variables during runtime (e.g. gdb).

Upvotes: 1

Related Questions