0

I'm trying to get some info on a certain PID. I'm probably doing this in a manner that is way too difficult, but I'm trying to run this:

lsof | grep grepstuff | awk '{ps -ef | grep $2;}'

and I'm not getting anything in response.

If I remove the awk part, I can definitely see that I am seeing the connections.

fedorqui
  • 258
  • 4
  • 17
Sugitime
  • 415
  • 1
  • 4
  • 12

1 Answers1

0

Figured it out:

lsof | awk '/grepstuff/ {ps $2;}'
Michael Hampton
  • 244,070
  • 43
  • 506
  • 972
Sugitime
  • 415
  • 1
  • 4
  • 12