Answer by Andreas Wiese for Get path of process file
You might try to readlink(2) the file /proc/<pid>/exe, which should be exactly what you want: $ ls -l /proc/$$/exe lrwxrwxrwx 1 aw aw 0 Apr 7 00:02 /proc/11700/exe -> /bin/zsh $ But note that...
View ArticleGet path of process file
I'm trying to do a program that needs to catch the full path of files being used (anywhere in the system) Straight to an example. I opened a file called "notify.py" whichis in the...
View Article
More Pages to Explore .....