LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   lsof -i event based alternative (https://www.linuxquestions.org/questions/linux-general-1/lsof-i-event-based-alternative-871375/)

bunnie1 03-27-2011 11:58 PM

lsof -i event based alternative
 
Hello,

I am trying to see if there is an alternative to lsof -i that is event based. I would like to be notified everytime that a socket is created and what the process (PID) is that created it.

Is there a tool that does this?

Thanks

paulsm4 03-28-2011 12:10 AM

That would be kind of expensive to do, wouldn't it? Especially for a busy server? ;)

chrism01 03-30-2011 01:14 AM

Try inotify http://linux.die.net/man/7/inotify


All times are GMT -5. The time now is 12:54 AM.