If you need to figure out which process ids are listening to a given port by id, and netstat isn't working for you, this will work:
lsof -i :80 | awk '{print $2}'|grep -e [0-9]
Thursday, October 22, 2009
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2009
(21)
-
▼
October
(14)
- Slowing brute force hackers
- Generating a new CSR to get your shiny new SSL cer...
- Turning man pages to PDF files
- Regex pattern for stripping Javadocs
- XSLT outputing Carriage return/line feed
- Getting FTP to work through IP tables
- Yum repo for more up to date Dovecot
- JBoss and file handles on RedHat
- How to get more network stats
- How to find process IDs listening to port xxx
- Fun with SSL certs and Apache
- Adding Jalopy to Maven and clean things up
- Dealing with extended characters in bash
- Meta key in emacs on osx 10.6.1
-
▼
October
(14)
No comments:
Post a Comment