Need to give input as addresses to a tool through awk
Dear All,
we have a tool called trace which takes a memory address as input and gives the function name corresponding to that as output. I have a file which has around 200 addresses, which needs to be given as input to this trace tool. I can start the tool in this way. Code:
trace main.file.map Manually it takes lot of time to give the addresses which are in other file one by one. I have idea about some basic awk one liners. Can anybody help me to start the script. Thanks |
I would probably just use bash as calling out of awk to trace would be a waste.
Something like: Code:
while read -r address |
Thanks a lot for the response grail.
As I can see, your script does well, if we are able to give Address directly to the trace tool. But we need to open the tool by giving a file name as input, later we can specify the address at trace> prompt. Please check the example given at the beginning of the thread. Still I am not able to automate this issue. Thanks again. |
if the trace program is prompting you for input then it wasnt meant to be automated.
take a look at expect. |
All times are GMT -5. The time now is 07:46 AM. |