I want to make sure everytime someone is login into my server I receive an email saying:

> 
> ALERT Shell Access on: Tue Jun 16 11:04:10 CDT 2009 user123 pts/0
>  2009-06-16 11:04
> 
> 
> 

So I put this code:

```
echo 'ALERT Shell Access on:' `date` `who` | mail -s "Alert: Root Access from `who | cut -d"(" -f2 | cut -d")" -f1`" example@example.com

```

in the `.bashrc`.

Why I don't receive any emails?

Thank you for your help, J