From: P YH Date: 2010-04-01T15:03:21+09:00 Subject: Re: socket programming...lsof? > Hi All, > > Is there a ruby substitute for lsof's functionality? Meaning I want to > listen on certain ports/sockets such as identd's port 113 to see if any > process is using this port. Is this possible in Ruby w/out using lsof? > > Here is my test code, on my ubuntu personal laptop with a port from > netstat -a. > > #!/usr/bin/ruby -w > > require 'rubygems' Can I ask the rubygems module is used for what purpose? Thanks.