perl - html - TechRepublic
General discussion
April 11, 2001 at 06:37 AM
iamsanchez

perl – html

by iamsanchez . Updated 25 years, 2 months ago

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

This discussion is locked

All Comments