Quantcast
Channel: Get path of process file - Stack Overflow
Browsing latest articles
Browse All 2 View Live

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 Article



Get 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
Browsing latest articles
Browse All 2 View Live




Latest Images