Welcome to the most active Linux Forum on the web.
Go Back > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.


  Search this Thread
Old 03-25-2008, 05:56 PM   #1
Registered: Jun 2007
Posts: 45

Rep: Reputation: 15
mailx comand

Is mailx a valid command.
mailx -s "test"

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:

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

Old 03-26-2008, 11:34 AM   #2
LQ Newbie
Registered: Aug 2006
Posts: 12

Rep: Reputation: 0
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?
Old 03-27-2008, 10:15 AM   #3
Registered: Apr 2007
Location: Indianapolis, Indiana
Distribution: RHEL, Fedora, AIX, HP-UX, FreeBSD, Slackware
Posts: 62

Rep: Reputation: 19
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.

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

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

service sendmail start
chkconfig sendmail on
Now issue your command:
mailx -s "test"
. <enter>


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure Mailx Gerardoj Linux - Software 1 05-11-2016 02:52 AM
mailx csaunders Red Hat 1 05-23-2007 08:55 AM
mailx question bubba112557 SUSE / openSUSE 1 12-17-2006 09:50 PM
mailx and slackware mikz Slackware 2 05-11-2005 09:35 AM
installing mailx skverma_in Linux - Software 2 11-25-2004 10:56 PM > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 03:28 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration