PDA

View Full Version : Reading proc/pid/mem File



sternr
February 6th, 2011, 11:56 AM
Hi,

I'm trying to read a process's proc/pid/mem file but with no luck.
I'm able to call the open method, but no matter what I try, read always returns -1.

I've tried running my program with sudo, but still got the same results...

Any ideas?

Thanks!

--sternr

vlaar
February 6th, 2011, 05:04 PM
Hiya,
google returned This (http://unix.stackexchange.com/questions/6301/how-do-i-read-from-proc-pid-mem-under-linux).
Good luck with that,
vlaar