Who’s LISTENing?
January 22nd, 2008 by ravi

Sometimes its useful to know who’s LISTENing on a socket. On GNU/Linux and similar systems, the command netstat -lp provides a listing of all sockets on which processes on your system are listening for connections, along with the process IDs/names of these processes. Unfortunately, it seems the MacOS (Leopard) version of netstat does not support the -p option. Fortunatly, Leopard does come with that Swiss army knife of process and file info, lsof, which among other things can display socket info.

For instance, to find the process that was listening on port 3000 on my system, I used: lsof -i 4:3000. The -i arg is used to specify the type of socket/connection we are looking for, the 4 denotes IPv4 and the 3000 is of course the port we are interested in.

Mac Essentials: Software deals
January 16th, 2008 by ravi

A few sites that you should add to your bookmarks or RSS reader:

macZOTMacUpdate PromoMac Heist

The first two are “Deal a Day” type sites that offer significant discounts on Mac software (one a day), while Mac Heist does period “bundles” – a number of apps bundled together for a very low price.

»  Substance: WordPress  »  Style: Ahren Ahimsa