Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How can I find out at what time a currently open TCP connection was established on Linux?

share|improve this question
1  
So, you have solved this problem and you don't have an actual question? –  SvW Aug 2 '11 at 20:55
1  
Again: Is this a problem for you or do you want to force a discussion? In the question recently closed you stated that you solved this. –  SvW Aug 2 '11 at 21:25
2  
Final comment, why not contribute the answer own answer anyway instead of trying to quiz people? I'm sure they would be appreciative and you might even get a point or two instead of earning scorn. –  mdpc Aug 2 '11 at 21:33
2  
We do like people to drop solutions to problems, so go ahead and post yours. If other people have better/different solutions, the better off we all are. –  sysadmin1138 Aug 2 '11 at 21:35
4  
blog.stackoverflow.com/2011/07/… It's perfectly acceptable to ask a question and then answer it yourself. –  Iain Aug 2 '11 at 21:39
show 7 more comments

1 Answer

up vote 5 down vote accepted

I was able to use lsof to get the file descriptor, then ran stat /proc/<PID>/fd/<file descriptor> to get the date.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.