LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-27-2011, 11:58 PM   #1
bunnie1
LQ Newbie
 
Registered: May 2009
Posts: 3

Rep: Reputation: 0
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
 
Old 03-28-2011, 12:10 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
That would be kind of expensive to do, wouldn't it? Especially for a busy server?
 
Old 03-30-2011, 01:14 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Try inotify http://linux.die.net/man/7/inotify
 
  


Reply

Tags
lsof, sockets



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
X-based alternative to Partclone? littlebigman Linux - Software 4 09-01-2010 05:22 AM
Looking for a console based alternative to ZSAFE ? frenchn00b Linux - Software 1 01-20-2010 08:42 PM
LXer: Ubuntu's Upstart event-based init daemon LXer Syndicated Linux News 0 02-08-2008 08:30 AM
Event based task scheduler? beeblequix Linux - Software 1 01-30-2008 11:49 AM
Alternative OS Based Site In Development - Help Needed! KingArchie General 3 06-02-2007 02:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration