Operating System - Linux
1832234 Members
2748 Online
110041 Solutions
New Discussion

Re: mailx not found on RH EL30

 
Nick D'Angelo
Super Advisor

mailx not found on RH EL30

I have numerous scripts that use mailx and not sendmail.

Rather than go through them one by one, is there something else that I can do?

My sendmail exists in /usr/sbin or /etc/alternatives/mta.

quite confusing to be honest, it seems to just loop to itself over and over.

Thanks.
Nickd
Always learning
5 REPLIES 5
rajdev
Valued Contributor

Re: mailx not found on RH EL30

Hi,

On my RH EL 4 mailx is installed in /bin/mailx and is actually a link to /bin/mail.

also /usr/sbin/sendmail points to /etc/alternatives/mta which points to /usr/sbin/sendmail.sendmail

Regards,
RD
Vitaly Karasik_1
Honored Contributor

Re: mailx not found on RH EL30

"mail" in linux provides HPUX's "mailx" functionality.
So you can just create a symlink "mailx" to "mail".
Steven E. Protter
Exalted Contributor

Re: mailx not found on RH EL30

Shalom,

mail -s

provides mailx functionality.

If you have mailx scripts, set up an alias.

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
Jimmy Vance
HPE Pro

Re: mailx not found on RH EL30

Red Hat provides the mailx rpm package for RHEL3, and RHEL4 but the packages I looked into didn't include the symlink for mailx that points to mail.

SuSE includes an enhanced version of mail called nail and has symlinks for mailx that point to nail



No support by private messages. Please ask the forum! 
dirk dierickx
Honored Contributor

Re: mailx not found on RH EL30

there is no mailx on linux, if you look at most scripts made to run on multiple unix versions, you will notice that they will always perform a 'mailx' check and default it to 'mail' when running on linux.