[NTLUG:Discuss] Login processing for RH 8.0

jay linux jaylinux at hotmail.com
Mon May 12 15:57:01 CDT 2003


Hello,

I'm fairly new to Linux. I'm trying to creat a bash (or whatever) script 
that runs every time I *login*. I want it to tell me when I last logged in 
and the number of times I have logged in before.

I was going to execute 'last' and then get the info I want from it. Is that 
how it's normally done?

Which file do I hook this into? The .profile? When I login using the RH 
login interface I'm not even sure where messages would come out since I'm 
not automatically put into a tty or shell or anything....

Thanks, Jay

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail




More information about the Discuss mailing list