In Windows environment there is an API to obtain the path which is running a process. Is there something similar in Unix / Linux?
Or is there some other way to do th
On Linux, the symlink /proc//exe has the path of the executable. Use the command readlink -f /proc//exe to get the value.
/proc//exe
readlink -f /proc//exe
On AIX, this file does not exist. You could compare cksum and cksum /proc//object/a.out.
cksum
cksum /proc//object/a.out