Timeline for How do I read from /proc/$pid/mem under Linux?
Current License: CC BY-SA 2.5
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 1, 2011 at 0:00 | comment | added | bahamat | @Giles: That's why I put "Since non-privileged processes can only read their own memory space this gets denied by the kernel". (And nope, I didn't realize that until just now when you pointed it out. I thought this whole time I was trying to make it a little more clear to someone else. I don't usually look at the poster's name or rep...then again I'm new here. It makes more sense to me now why the conversation went the way it did.) | |
| Jan 31, 2011 at 23:45 | comment | added | Gilles 'SO- stop being evil' | @bahamat: I assure you that when I wrote cat /proc/$$/mem, I expected to see the memory of the shell. (Er, did you realize that I asked the question?) | |
| Jan 31, 2011 at 23:38 | history | edited | bahamat | CC BY-SA 2.5 | Added an example to clarify what I was trying to say. |
| Jan 31, 2011 at 23:35 | comment | added | bahamat | @Gilles it was clear before. He specifically mentions using cat /proc/$$/mem. I was explaining why that specific command doesn't work as expected. I've updated my answer to include a specific example. | |
| Jan 31, 2011 at 23:23 | comment | added | Gilles 'SO- stop being evil' | @bahamat: Is the question clearer now? (BTW I don't see your comments unless you use “@Gilles”, I just happened to see your edit and came to see.) | |
| Jan 31, 2011 at 22:45 | history | edited | bahamat | CC BY-SA 2.5 | Typo and brain fart |
| Jan 31, 2011 at 22:44 | comment | added | bahamat | Yes...he started out asking referring to $$ and put $pid at the end. I transposed it in my head without realizing it. My entire answer should refer to $$, not $pid. | |
| Jan 31, 2011 at 22:22 | comment | added | Gilles 'SO- stop being evil' | @bahamat: Are you thinking of $$ when you write (and read) $pid? | |
| Jan 24, 2011 at 21:07 | comment | added | bahamat | Which is going to be bash. I wasn't saying your answer was wrong. I was just answering in more layman's terms "why doesn't this work". | |
| Jan 24, 2011 at 19:35 | comment | added | Gilles 'SO- stop being evil' | You end up trying to read the memory of whatever $pid is. As I explain in my answer, reading the memory of a different process requires you to ptrace it. | |
| Jan 24, 2011 at 17:02 | history | answered | bahamat | CC BY-SA 2.5 |