LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

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

Rep: Reputation: 15
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
 
Old 03-26-2008, 11:34 AM   #2
l4n3
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
misconfiguration
Member
 
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.

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>
 
  


Reply


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
mailx csaunders Red Hat 1 05-23-2007 08:55 AM
mailx question bubba112557 Suse/Novell 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
Configure Mailx Gerardoj Linux - Software 0 10-04-2003 09:09 PM


All times are GMT -5. The time now is 11:25 PM.

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