[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: who/w/finger/last printing ip address



Quoting Reco (recoverym4n@gmail.com):
> On Wed, Sep 09, 2015 at 11:50:17AM -0500, David Wright wrote:
> > Quoting Reco (recoverym4n@gmail.com):
> > 
> > > So, long story short, last version of 'w' which printed hostnames by
> > > default should be squeeze's one, and even then they used compilation
> > > flag to make it do so.
> > 
> > I'm trying to follow this, but it doesn't seem to square with my own
> > observations.
> 
> Ok. As they say - 'there should be a logical explanation for this' :)
> 
> > I've edited the following output to pertinent entries in context
> > (you don't need my TV's hostname/IP#).
> 
> Indeed. They are irrelevant in this case.
> 
> > west runs jessie, alum runs wheezy. jessie first:
> > 
> > west ~ $ w
> < 'w' showing hostnames skipped >
> > alum ~ $ w -i
> > w: invalid option -- 'i'
> 
> This. Since 'w' from 'procps' package clearly supports '-i' flag - it
> means you use some different 'w'. Please post the output of:
> 
> ls -al /usr/bin/w
> ls -al /etc/alternatives/w

jessie first:

west ~ $ ls -l /usr/bin/w /etc/alternatives/w /usr/bin/w.procps 
lrwxrwxrwx 1 root root    17 Oct 10  2012 /etc/alternatives/w -> /usr/bin/w.procps
lrwxrwxrwx 1 root root    19 Oct 10  2012 /usr/bin/w -> /etc/alternatives/w
-rwxr-xr-x 1 root root 17896 Mar  6  2015 /usr/bin/w.procps
west ~ $ man w | grep ' 201'
procps-ng          May 2012          W(1)
west ~ $ dpkg -L procps | grep /w
/usr/share/man/de/man1/w.1.gz
/usr/share/man/man1/watch.1.gz
/usr/share/man/man1/w.procps.1.gz
/usr/bin/w.procps
/usr/bin/watch
west ~ $ 

Now wheezy:

alum ~ $ ls -l /usr/bin/w /etc/alternatives/w /usr/bin/w.procps 
lrwxrwxrwx 1 root root    17 May  5  2014 /etc/alternatives/w -> /usr/bin/w.procps
lrwxrwxrwx 1 root root    19 May  5  2014 /usr/bin/w -> /etc/alternatives/w
-rwxr-xr-x 1 root root 17916 Mar 28  2013 /usr/bin/w.procps
alum ~ $ man w | grep ' 201'
procps-ng          June 2011          W(1)
alum ~ $ dpkg -L procps | grep /w
/usr/bin/watch
/usr/bin/w.procps
/usr/share/man/man1/w.procps.1.gz
/usr/share/man/man1/watch.1.gz
/usr/share/man/de/man1/w.1.gz
alum ~ $ 

Cheers,
David.


Reply to: