[nycbug-talk] ports. . .

Marc Spitzer mspitzer
Thu Aug 11 18:37:24 EDT 2005


On 8/10/05, George Georgalis <george at galis.org> wrote:
> On Wed, Aug 10, 2005 at 10:21:25PM -0400, Okan Demirmen wrote:
> >On Tue 2005.08.09 at 21:45 -0400, George Rosamond wrote:
> 
> >Now another project would be to correlate all the various *BSD ports
> >into one location and then let the community help develop ports for the
> >BSD's that don't have them yet. Help the *BSD's that way.
> 
> isn't pkgsrc a lot like this? As far as new ports go, I'd love to see
> a ps and netstat replacement that works like these command lines do in
> linux.

Replacement bad, break scripts etc....

/usr/pkgsrc/sysutild/pstree good, installs as proctree so there is no confusion.

> 
> ps -e f -o pid,user,cmd --sort=user
> 30502 root      \_ /usr/sbin/sshd
> 30504 geo       |   \_ /usr/sbin/sshd
> 30505 geo       |       \_ -bash
>  1346 geo       |           \_ ps -e f -o pid,user,cmd --sort=user
> 
> 
> netstat -ptuna
> Active Internet connections (servers and established)
> Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
> tcp        0      0 0.0.0.0:515             0.0.0.0:*               LISTEN      2409/lpd
> tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      766/apache
> udp        0      0 0.0.0.0:123             0.0.0.0:*                           355/ntpd
> 

lsof -i4 is damm close, if i read the man page I could probably get
the proc name as well.

marc




More information about the talk mailing list