mailx on linux just like on solaris/HP

Hello Unix lovers,

I want to know if I can have mailx on linux. I am using redhat 6.

My sys admin says that mailx is not availble on linux. I see on my linux system mailx is just a link to /bin/Mail program.

I want to install mailx just as it is availble on soaris/HP.

When my sys admin reinstalled mailx package, it only installed Mail and mail programs.

[root@indlin179 ~]# rpm -ql mailx-8.1.1-44.2.2
/bin/mail
/etc/mail.rc
/usr/bin/Mail
/usr/lib/mail.help
/usr/lib/mail.tildehelp
/usr/share/man/man1/Mail.1.gz
/usr/share/man/man1/mail.1.gz

As I understnad mail and mailx are different and mailx is enhanced version of mail.

Any pointers will help.

thanks,
Ashish

---------- Post updated 04-10-12 at 09:49 AM ---------- Previous update was 04-09-12 at 06:00 PM ----------

Hello Moderators,
is there any way I can move this thread to general unix section, just for larger view from many peoples?

i really need to solve this urgently.

Thanks,
Ashish

Hi,

Mailx worked in linux and unix, I have installed in RedHat and HP-UX, I used in OSF1 too.

Run:

rpm -ql redhat-lsb

Quim&r@

Thanks quimera for your reply.

Would you please check if below works for you as desired. For me it works on HP/Solaris but not on linux.

$mailx abc@company.com <<EOF
>~c xyz@company.com
>~s this is subject
>this is mail body
>EOF
$

It seems that mailx I am using on my redhat linux is old implementation.
To get above done I had to use mailx -I .

Thanks all for your reply.

-Ashish

Hi Ashish,

I did not know this way.

Thanks.

Quim&r@.