I search the Internet for answers to computer technical problems that I encounter. When the Internet does not supply me with an answer, I research one on my own. Then, I document the answer here so others can find it.
Also, for your benefit, this stupid blog name makes a great mnemonic.

2010-10-21

Perl one-liner: a process is communicating with which hosts (using lsof)?

You want to know which hosts that a process is communicating with. You use lsof. You want a Perl one-liner to parse the output nicely for you.

In the below example, the PID of the process I am observing is 1114114.