Solved

new finger that displays longer tty

Posted on 1998-08-19
7
305 Views
Last Modified: 2013-11-13
Currently finger displays the following :
login    Full Username   *R2    25  Aug 19 17:56

I'd like it to be able to display :
login    Full Username   *R212    25  Aug 19 17:56

anyone know where I can get a copy of a finger like app to do this?
0
Comment
Question by:Q010797
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1637819
how about using

   w
0
 
LVL 1

Author Comment

by:Q010797
ID: 1637820
no :)  want the same sort of output like finger..
with the login name.. full users name... tty they're on... and an idle time added up to save me effort... and a login time.
0
 
LVL 12

Expert Comment

by:Otta
ID: 1637821
Have you looked at http://www.linux.org  ??
0
Get Actionable Data from Your Monitoring Solution

Your communication platform is only as good as the relevance of the information you send. Ensure your alerts get to the right people every time with actionable responses. Create escalation rules that ensure everyone follows the process and nothing is left to chance.

 
LVL 1

Author Comment

by:Q010797
ID: 1637822
yea I have but not found anything that will do what I want
0
 
LVL 2

Expert Comment

by:JYoungman
ID: 1637823
You will need to compile a slightly modified version of finger.

0
 
LVL 2

Expert Comment

by:vx
ID: 1637824
I haven't tried them myself, but there are some finger daemons at sunsite:
ftp://sunsite.unc.edu/pub/Linux/system/network/finger/

I believe Slackware includes bsd-finger and RedHat includes both cfinger and kfinger.
0
 
LVL 1

Accepted Solution

by:
ghjm earned 20 total points
ID: 1637825
There is no configuration setting that will do what you want. You will have to change the source code of the finger program itself. Here are instructions assuming you are using RedHat 5.1. If you're using another distribution, you'll have to download the bsd-finger 0.10 package from somewhere, or figure out how your distribution does source packaging. The actual change to the source code should be the same either way.

- Mount the RedHat CD #2, the one that contains all the source code.
- Log to the ...cdrom/SRPMS directory.
- Type "rpm --install finger-0.10-3.src.rpm" - this will install the source code for finger.
- cd /usr/src/redhat
- Type "rpm -bp SPECS/finger-0.10.spec" - this will unpack and prepare the source.
- cd BUILD/bsd-finger-0.10
- Type "./configure" - this will set all the configuration the makefile needs
- cd finger
- Edit the file sprint.c
- Go to line 92 of the file, which is a printf with the header that shows up on a "finger @site" - you can search for "Tty  Idle  Login" (note the double spaces) to find this
- Add two more spaces after "Tty" - this is so the header will line up correctly with the wider tty variable
- Scroll down ten lines or so, to the "if (*w->tty)"
- On the next line, in the printf statement, change "%-2.2s " to "%-4.4s "
- cd .. (back out of the finger directory into the bsd-finger-0.10 directory)
- type "make all" - this will build the software. If you see error messages, you did something wrong. :-)
- test the results by typing "finger/finger"
- If it does what you want, type "make install" to install the new executables

-Graham

p.s. If you like this answer, you might raise the number of points before you accept it. :-)
0

Featured Post

Turn Insights into Action

Communication across every corner of your business is essential to increase the velocity of your application delivery and support pipeline. Automate, standardize, and contextualize your communication processes with xMatters.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question