So, what can you do with a process ID?
will-keleher.com
So, what can you do with a process ID?
1–10 of 26 posts
Re: So, what can you do with a process ID?
#2cat /proc//environ would be a solid addition to this list.
Re: So, what can you do with a process ID?
#3Re: So, what can you do with a process ID?
#4Re: So, what can you do with a process ID?
#5If the blogging gods take requests I just made one.
Re: So, what can you do with a process ID?
#6Re: So, what can you do with a process ID?
#7For a moment I thought the topic was about PID controllers. That would have been cool. If the blogging gods take requests I just made one.
Re: So, what can you do with a process ID?
#8 PPID PID PGID SID TTY TPGID STAT UID TIME COMMAND
0 1 1 1 ? -1 Ss 0 0:57 /sbin/init splash
1 978 978 978 ? -1 Ss 0 0:00 /usr/sbin/sshd -D
978 11441 11441 11441 ? -1 Ss 0 0:00 \_ sshd: ghostpepper [priv]
11441 11445 11441 11441 ? -1 S 1000 0:00 \_ sshd: ghostpepper@pts/4
11445 11446 11446 11446 pts/4 11641 Ss 1000 0:00 \_ -bash
11446 11641 11641 11446 pts/4 11641 R+ 1000 0:00 \_ ps ajxf
Another thing some might not know is that kill (the command / syscall) can send a lot of other signals than KILL (the signal). Not all processes know how to gracefully handle them, so you need to be careful, but for example a lot of daemons can catch SIGHUP and re-load their config file from disk.Re: So, what can you do with a process ID?
#9And with strace -p pid you can somewhat "spy" on what a process is doing.
Now if I could just track NFS client traffic on a client associated with a PID (without having NFS server access). All I can get is all-PID/client-kernel data info vi nfsstat, nothing tying to a PID, filename, directory or inode to tell me which PID is causing all the NFS traffic!
Re: So, what can you do with a process ID?
#10And with strace -p pid you can somewhat "spy" on what a process is doing.
This. (Combine with sudo too!) Now if I could just track NFS client traffic on a client associated with a PID (without having NFS server access). All I can get is all-PID/client-kernel data info vi nfsstat, nothing tying to a PID, filename, directory or inode to tell me which PID is causing all the NFS traffic!
iotop?