How can I get the process details like name of application & real path of application from process id?
I am using Mac OS X.
Try use lsof
example:
lsof -p 1066 -Fn | awk 'NR==2{print}' | sed "s/n\//\//"
output: /Users/user/Library/Application Support/Sublime Text 2/Packages
/Users/user/Library/Application Support/Sublime Text 2/Packages