This question is only for the perl side.
Assuming this is a form with only ONE label and ONE input box. The label says: “Enter loginname” and the box is a of type “input”.
How do I write a short perl script that would take the login name from one input box and see if the user is in the /etc/passwd file. If it is, display the last time he/she was logged on using the “last” command.
If the user is NOT there,in the /etc/passwd file, just display where they came from (ip address) REMOTEHOST?
Can someone help?
Thanks.
Raf