Allert when a certain user logs in

hi there
i am new to the unix environment and im trying to write a script that will alert me when a certain user logs in.
help is appreciated thank you

you can start from who |grep USERID

That'll just tell the OP who's logged in now. I think what is asked for, is a script that will log or perhaps send mail when someone logs in.
Przemekny, You'll have to monitor certain logfiles, I don't know which ones, google ought to help you there,

Edit: It looks as if programs called last or lastlog might help.

Hi przemekny
What kind of alert you are looking for. Is it sending through mail or at the prompt only.

if you have audit daemon turned on (depending on what OS also)

man ausearch