And with strace -p pid you can somewhat "spy" on what a process is doing.
So, what can you do with a process ID?
21–26 of 26 posts
Re: So, what can you do with a process ID?
#22Re: So, what can you do with a process ID?
#23Way hay we're out of memory Way hay our disk is thrashing Way hay I need more coffee Early in the morning! What can you do with a process ID What can you do with a process ID What can you do with a process ID Early in the morning? Send a SIGKILL to its process Send a SIGKILL to its process Send a SIGKILL to its process Early in the morning!
Re: So, what can you do with a process ID?
#24Interesting there's no mention of the /proc filesystem ( https://docs.kernel.org/filesystems/proc.html ). cat /proc/ /environ would be a solid addition to this list.
Re: So, what can you do with a process ID?
#25I know about some of these tricks. However, containers are popular and typically don’t have the tools installed, and you can’t necessarily sudo either. What do people replace these tricks with, in some cloud container or k8s pods?
If /proc is mounted in the container you can grab the same information (more tediously) by looking at /proc/
Re: So, what can you do with a process ID?
#26Earlier quoted context omitted.
If /proc is mounted in the container you can grab the same information (more tediously) by looking at /proc/
Some things are there, but real tedious, yes. I haven’t found something convenient and if you’re not root, some of the useful things are inaccessible.