Felix T. Gomez, Jr. wrote: > Hi, > > Last command is very useful but it would be better if > I will know what file does this information resides? > > What I am thinking is if the data resides in a file, I > could get it by making a perl script that will read a > "log file" and parse it line by line just like how i > could see it when I type the "last" command. >
'last' extracts its information from /var/log/wtmp as indicated in the man page for the 'last' command I referred you to, but unfortunately, 'wtmp' is a binary file, which cannot be directly read, which accounts for the existence of 'last', which is the utility created to read from 'wtmp'. -- -wittig http://www.robertwittig.com/ http://robertwittig.net/ http://robertwittig.org/ . To unsubscribe from this list, please email [EMAIL PROTECTED] & you will be removed. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/LINUX_Newbies/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/LINUX_Newbies/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
