The motd file is a plain text file that the profile script cats to the user.
To have a script run when you log in, put it in a script named .bash_profile (assuming that you use bash as a shell) in your home directory, or for all users, add it to /etc/profile
Hope that helps,
—Robert J Lee
|