All,
I have a requirement to get the process name of the newly execv'd process.
After getting the complete process name, I need to carry out further operations on that.
Problem so far is how do I retrieve the name of the process ?
There is an API in windows called GetCommandLine. I need something similiar to that in Linux.
I tried this forum and a whole lot of other google results. Nothing helped.
The best I have come up is Linux maintains a struct for each process, and a struct member supoosedly hold the process name. But I cant figure out which/what struct that is.
Any pointers will be appreciated.
Thanks,
Vino