vi .bash_profile
echo 'ALERT - Shell Access on:' `date` `who` | mail -s "Alert: Access from `who | cut -d"(" -f2 | cut -d")" -f1`" mail@gmail.com
메일 주소는 변경 필수
vi .bash_profile
echo 'ALERT - Shell Access on:' `date` `who` | mail -s "Alert: Access from `who | cut -d"(" -f2 | cut -d")" -f1`" mail@gmail.com
메일 주소는 변경 필수