Probably not what you may want, but we have a simple bit added to a user's ..profile file: As the user logs in, their previous date and time are stated; then the file is overwritten with the new date and time: echo "The $(whoami) account was last activated on:" echo $(cat ~/date.txt) date > ~/date.txt echo " " echo " " It simply updates a file in the home directory for each user, date.txt, with the date and time stamp: eg a content may be: Mon Apr 29 12:55:00 BST 2002 Regards Cathy -----Original Message----- From: gkhgkh@attbi.com [mailto:gkhgkh@attbi.com] Sent: 29 April 2002 18:28 To: Perl Beg Subject: Calculating Last Login on Unix ********************************************************************** This e-mail message has been scanned by MAILsweeper for known viruses and offensive language as it entered the DHCT/EDMSSA mail system. None was found. ********************************************************************** Is there a module or a method using perl to calculate the last login date for a user. I know I can do this by installing accounting, however I prefer not to do to other issues. Any thoughts/help is appreciated. Thanks -- To unsubscribe, e-mail: beginners-unsubscribe@perl.org For additional commands, e-mail: beginners-help@perl.org ********************************************************************** This e-mail and the information it contains may be privileged and/or confidential. It is intended for the addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any of the information it contains, is prohibited and could, in certain circumstances, be a criminal offence. If you are not an intended recipient, please notify postmaster@dorsethc-tr..swest.nhs.uk immediately. Please note that the Trusts/Agency do not enter into any form of contract by means of Internet e-mail. None of the staff of the Trusts/Agency is allowed to enter into contracts on behalf of the Trusts/Agency in this way. All contracts to which the Trusts/Agency are party are to be documented by other means. **********************************************************************Thread Previous | Thread Next