1833832 Members
2107 Online
110063 Solutions
New Discussion

Re: root e-mail

 
Cathy Arora
Frequent Advisor

root e-mail

Hi all;
I would to check root-mail account.
Please help, how to check it becuse there is a hardware issue with unix box (11i) and I am hopeing I may have some mail in root account, which I can forward to HP.
Also how can I set the terminal id.
Thanks and appreciate help.

raj
7 REPLIES 7
melvyn burnard
Honored Contributor

Re: root e-mail

login as root
type:
elm
respond y to both qustions (if asked) for directory etc, then read any mail that may be there.
To set the terminal type
you could do:
eval `ttytype -s`
tset

and htis hopefully should interrogate your terminal and set it for you.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Robert-Jan Goossens
Honored Contributor

Re: root e-mail

Hi,

# export TERM=vt100
run the mail or elm command.

Robert-Jan
Cathy Arora
Frequent Advisor

Re: root e-mail

Thanks,
How do i know what terminal id should it be?
can you set up termid for console also.
and how would i know that perticular id?

Thanks again.
raj
Uday_S_Ankolekar
Honored Contributor

Re: root e-mail

If you are using console then I guess you are using HP terminal. Run export TERM=hp.

In future use .forward file in roots home directory. put your email id in the .forward file., All the root mails then will redirect to your e-mail account.

-USA..
Good Luck..
Robert-Jan Goossens
Honored Contributor

Re: root e-mail

Hi Cathy,

I'm not shure what mean with termid ?

If you look at root's profile there should be a part looking like below

-----

# Set up the terminal:
if [ "$TERM" = "" ]
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
case `tty` in
*console*) TERM=hp ;;
*) TERM=vt100 ;;
esac
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
tabs

echo
echo " Value of TERM has been set to \"$TERM\". "
export TERM

-------

Regards,
Robert-Jan
Steven E. Protter
Exalted Contributor

Re: root e-mail

It is a pretty common practice to forward root email to another user.

in /etc/mail/aliases

root: someone@yournetwork

You will need to locate and run gen_cf to generate a new sendmail.cf, move it to production and ...

/sbin/init.d/sendmail start
/sbin/init.d/sendmail stop

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Wouter Jagers
Honored Contributor

Re: root e-mail

Terminal type:
# export TERM=hp
--> will work on the console

# export TERM=vt100
--> will work on pretty much anything.

Mail:
You can use the 'mail' command.. However, it's better to edit your /etc/mail/aliases file and add the following line:

root:youraddress@yourdomain

.. and Then run the command 'newaliases'.

This will send all mails for root to your email address.

regards
Wout
an engineer's aim in a discussion is not to persuade, but to clarify.