The format of a finger query is precisely defined, but the format of the response may vary. The finger protocol is described in detail in RFC 1288. You can find out how to use finger by typing the command
man finger
Experiment with the finger command to display login information and to obtain information about some of your friends.
Write a Java program Finger.java that mimicks the functions of the UNIX finger program. Your program should take up to one argument on the command line and perform the following actions:
Your program should simply print to the screen whatever information is sent to it by the finger server. Be sure to include error handling. That is, if a user uses your program incorrectly or specifies an invalid machine name, your program should print appropriate error messages.Command Line | Argument | Action --------------|------------------------------------------------------------------ none | Display the users logged onto the local host user | Display information for the specified user from the local host user@host | Display information for the specified user on the specified host @host | Display the users logged onto the specified host
contst10@cs.gettysburg.edu
The e-mail message itself must contain the Honor Pledge and the full names of the people submitting the assignment. Only one submission should be made for each team.