On Fri, Dec 03, 2010 at 09:35:39PM +0000, John Case wrote: > > On Fri, 3 Dec 2010, Hans Schnehl wrote: > > > Sorry for jumping in , but please notice the above command might not > > not work on all versions of FBSD, at least it doesn't on a 7-Stable jail. > >
Not working refers to Fabian's use of procstat. > > Maybe the following just produces a similar sufficient output: > > > > _...@ato# id > > uid=256(_tor) gid=256(_tor) groups=256(_tor) > > _...@ato# sockstat -4 | grep tor > > _tor tor 4397 7 tcp4 172.27.72.202:9050 *:* > > _tor tor 4397 8 udp4 172.27.72.202:53 *:* > > _tor tor 4397 9 tcp4 172.27.72.202:9051 *:* > > _tor tor 4397 12 tcp4 172.27.72.202:54011 [scrubbed]:9001 > > _tor tor 4397 15 tcp4 172.27.72.202:59374 [scrubbed]:9001 > > _tor tor 4397 19 tcp4 172.27.72.202:59673 [scrubbed]:9001 > > _tor tor 4397 20 tcp4 172.27.72.202:51946 [scrubbed]:443 > > _tor tor 4397 22 tcp4 172.27.72.202:60344 [scrubbed]:9001 > > > > for *not* displaying listening ports just use > > _...@ato# sockstat -4 | grep tor| sed '/\*/d' > > _tor tor 4397 4 tcp4 172.27.72.202:52420 [scrubbed]:443 > > _tor tor 4397 12 tcp4 172.27.72.202:54011 [scrubbed]:9001 > > _tor tor 4397 13 tcp4 172.27.72.202:51736 [scrubbed]:443 > > > Wait, so the method detailed here: > > http://lists.freebsd.org/pipermail/freebsd-questions/2007-November/162970.html > > specifically: > > ps -Al > > after polling for lsof and a foreach loop, doesn't work ? > > I know it's not elegant, but it appeared to me that: > > lsof + ps -Al > > would work ... especially if the system in question is doing little (or > nothing) other than Tor ... I suppose it would, but some (like me) tend to run tor in rather minimal jails. lsof isn't exactly a small application, so it might just make sense using the base system's sockstat. At least that was the idea. Up to the one porting arm to FBSD, I guess. *********************************************************************** To unsubscribe, send an e-mail to majord...@torproject.org with unsubscribe or-talk in the body. http://archives.seul.org/or/talk/