Thread: Suse mailx
View Single Post

  #2 (permalink)  
Old 05-02-2008, 02:52 AM
rockdalinux's Avatar
rockdalinux rockdalinux is offline
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 581
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

Try mail command
Code:
mail -s "Subject" root <<EOF
This is my message
EOF
On many systems root mail are forwared to some other account. Following will tell you exact account or email id
Code:
grep ^root /etc/aliases
root: admin@staff.somewhere.com

Person who should get root's mail is admin@staff.somewhere.com
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote