LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   mailx not found error message (https://www.linuxquestions.org/questions/linux-software-2/mailx-not-found-error-message-605841/)

kaplan71 12-10-2007 11:16 AM

mailx not found error message
 
Hi there --

I have a script on one of servers, running Fedora Core 7, that sends a success or failure message to the system administrator using mailx. However has failed to send its e-mail notifications for several days.

When I did a check within the script, I discovered the following error situation while debugging:

mailx: command not found

The confusing part of this situation is the fact that logwatch is also installed on this system, and one of its dependencies is mailx. That utility is working properly.

Does anyone have any ideas as to what is going on? Thanks.

colucix 12-10-2007 11:27 AM

On my Fedora Core 6, mailx is a link to mail
Code:

$ ls -l /bin/mailx
lrwxrwxrwx 1 root root 4 Oct 31  2006 /bin/mailx -> mail

the former is provided by the package redhat-lsb, the latter is provided by mailx. So, if things are not changed between the two Fedora releases, you should start to check the following
Code:

$ ls -l /bin/mail*
$ rpm -q mailx
$ rpm -q redhat-lsb

and eventually verify the integrity of the packages.

kaplan71 12-10-2007 02:20 PM

Thanks for the help. Once I installed the Redhat-lsb package, mailx worked without a problem.


All times are GMT -5. The time now is 06:25 AM.