LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   mailx comand (https://www.linuxquestions.org/questions/linux-enterprise-47/mailx-comand-630617/)

ajatiti 03-25-2008 05:56 PM

mailx comand
 
Is mailx a valid command.
mailx -s "test" myid@mydomain.com

I tried using this comamnd and it doesnt work..It says mailx command not found.
I have mailx installed.
If I run rpm -qa mailx it gives something like this:
mailx3.8.1x

do I need to install something else or the command is wrong?

Thanks,
AJ

l4n3 03-26-2008 11:34 AM

If it's installed and reporting "not found" then it probably isn't in your path.

Although, on RHEL5 it's in /bin and that should be in any path you have.

This kind of question probably shouldn't be in the Enterprise Linux forum. Have you posted in the "newbie", "software", or "server" forums?

misconfiguration 03-27-2008 10:15 AM

I don't think this should be in the 'newbie section' mainly because I have to support DBA's on many of my enterprise applications, they have many scripts that depend on the mailx command.

ajatiti:
The mailx command generally is an offset of /bin/mail, try to issue a symlink.

Code:

ln -s /bin/mail /bin/mailx
Don't forget to start sendmail

Code:

service sendmail start
chkconfig sendmail on

Now issue your command:
Code:

mailx -s "test" email.address@domain.com
Text
. <enter>



All times are GMT -5. The time now is 01:43 AM.