Mailx: command not found











up vote
-2
down vote

favorite












I have a Linux server that is up and running for nearly 90+ days.



[root@RHEL7 log]# uptime
06:23:31 up 95 days, 11:56, 10 users, load average: 0.30, 0.52, 0.56
[root@RHEL7 log]# uname -a
Linux RHEL7 2.6.18-433.el5 #1 SMP Thu Jun 28 14:26:33 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux
[root@RHEL7 log]# yum list installed | grep mailx
mailx.x86_64 8.1.1-44.2.2 installed
[root@RHEL7 log]# rpm -qa | grep mailx
mailx-8.1.1-44.2.2


Above are the details. Mailx was working until last week. All of a sudden it stopped working and showing command not found. But the packages are all showing installed as above.



[root@ENT-DV-UHBLD01 log]# which mailx
/usr/bin/which: no mailx in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/bin:/bin:/opt/puppetlabs/bin)
[root@ENT-DV-UHBLD01 log]# whereis mailx
mailx: /usr/share/man/man1p/mailx.1p.gz
[root@ENT-DV-UHBLD01 log]# mailx
bash: mailx: command not found









share|improve this question
























  • The above command doesn't return anything. So I hope no verification errors.
    – sabarish jackson
    Nov 26 at 11:35










  • rpm -ql mailx
    – Ipor Sircer
    Nov 26 at 11:41










  • Sorry, forgot the q. Does rpm -q -V mailx-8.1.1-44.2.2 show any verification errors?
    – Mark Plotnick
    Nov 26 at 11:48










  • rpm -q -V mailx-8.1.1-44.2.2 gives no output.
    – sabarish jackson
    Nov 26 at 11:50






  • 1




    Looks like /bin/mailx is a symlink to /bin/mail. /bin/mail comes from the mailx package, but /bin/mailx is part of the redhat-lsb package. So please run rpm -q -V redhat-lsb and see if it shows any errors.
    – Mark Plotnick
    Nov 26 at 18:56















up vote
-2
down vote

favorite












I have a Linux server that is up and running for nearly 90+ days.



[root@RHEL7 log]# uptime
06:23:31 up 95 days, 11:56, 10 users, load average: 0.30, 0.52, 0.56
[root@RHEL7 log]# uname -a
Linux RHEL7 2.6.18-433.el5 #1 SMP Thu Jun 28 14:26:33 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux
[root@RHEL7 log]# yum list installed | grep mailx
mailx.x86_64 8.1.1-44.2.2 installed
[root@RHEL7 log]# rpm -qa | grep mailx
mailx-8.1.1-44.2.2


Above are the details. Mailx was working until last week. All of a sudden it stopped working and showing command not found. But the packages are all showing installed as above.



[root@ENT-DV-UHBLD01 log]# which mailx
/usr/bin/which: no mailx in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/bin:/bin:/opt/puppetlabs/bin)
[root@ENT-DV-UHBLD01 log]# whereis mailx
mailx: /usr/share/man/man1p/mailx.1p.gz
[root@ENT-DV-UHBLD01 log]# mailx
bash: mailx: command not found









share|improve this question
























  • The above command doesn't return anything. So I hope no verification errors.
    – sabarish jackson
    Nov 26 at 11:35










  • rpm -ql mailx
    – Ipor Sircer
    Nov 26 at 11:41










  • Sorry, forgot the q. Does rpm -q -V mailx-8.1.1-44.2.2 show any verification errors?
    – Mark Plotnick
    Nov 26 at 11:48










  • rpm -q -V mailx-8.1.1-44.2.2 gives no output.
    – sabarish jackson
    Nov 26 at 11:50






  • 1




    Looks like /bin/mailx is a symlink to /bin/mail. /bin/mail comes from the mailx package, but /bin/mailx is part of the redhat-lsb package. So please run rpm -q -V redhat-lsb and see if it shows any errors.
    – Mark Plotnick
    Nov 26 at 18:56













up vote
-2
down vote

favorite









up vote
-2
down vote

favorite











I have a Linux server that is up and running for nearly 90+ days.



[root@RHEL7 log]# uptime
06:23:31 up 95 days, 11:56, 10 users, load average: 0.30, 0.52, 0.56
[root@RHEL7 log]# uname -a
Linux RHEL7 2.6.18-433.el5 #1 SMP Thu Jun 28 14:26:33 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux
[root@RHEL7 log]# yum list installed | grep mailx
mailx.x86_64 8.1.1-44.2.2 installed
[root@RHEL7 log]# rpm -qa | grep mailx
mailx-8.1.1-44.2.2


Above are the details. Mailx was working until last week. All of a sudden it stopped working and showing command not found. But the packages are all showing installed as above.



[root@ENT-DV-UHBLD01 log]# which mailx
/usr/bin/which: no mailx in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/bin:/bin:/opt/puppetlabs/bin)
[root@ENT-DV-UHBLD01 log]# whereis mailx
mailx: /usr/share/man/man1p/mailx.1p.gz
[root@ENT-DV-UHBLD01 log]# mailx
bash: mailx: command not found









share|improve this question















I have a Linux server that is up and running for nearly 90+ days.



[root@RHEL7 log]# uptime
06:23:31 up 95 days, 11:56, 10 users, load average: 0.30, 0.52, 0.56
[root@RHEL7 log]# uname -a
Linux RHEL7 2.6.18-433.el5 #1 SMP Thu Jun 28 14:26:33 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux
[root@RHEL7 log]# yum list installed | grep mailx
mailx.x86_64 8.1.1-44.2.2 installed
[root@RHEL7 log]# rpm -qa | grep mailx
mailx-8.1.1-44.2.2


Above are the details. Mailx was working until last week. All of a sudden it stopped working and showing command not found. But the packages are all showing installed as above.



[root@ENT-DV-UHBLD01 log]# which mailx
/usr/bin/which: no mailx in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/bin:/bin:/opt/puppetlabs/bin)
[root@ENT-DV-UHBLD01 log]# whereis mailx
mailx: /usr/share/man/man1p/mailx.1p.gz
[root@ENT-DV-UHBLD01 log]# mailx
bash: mailx: command not found






rhel package-management command mailx






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 27 at 21:21









Rui F Ribeiro

38.4k1477127




38.4k1477127










asked Nov 26 at 11:29









sabarish jackson

128112




128112












  • The above command doesn't return anything. So I hope no verification errors.
    – sabarish jackson
    Nov 26 at 11:35










  • rpm -ql mailx
    – Ipor Sircer
    Nov 26 at 11:41










  • Sorry, forgot the q. Does rpm -q -V mailx-8.1.1-44.2.2 show any verification errors?
    – Mark Plotnick
    Nov 26 at 11:48










  • rpm -q -V mailx-8.1.1-44.2.2 gives no output.
    – sabarish jackson
    Nov 26 at 11:50






  • 1




    Looks like /bin/mailx is a symlink to /bin/mail. /bin/mail comes from the mailx package, but /bin/mailx is part of the redhat-lsb package. So please run rpm -q -V redhat-lsb and see if it shows any errors.
    – Mark Plotnick
    Nov 26 at 18:56


















  • The above command doesn't return anything. So I hope no verification errors.
    – sabarish jackson
    Nov 26 at 11:35










  • rpm -ql mailx
    – Ipor Sircer
    Nov 26 at 11:41










  • Sorry, forgot the q. Does rpm -q -V mailx-8.1.1-44.2.2 show any verification errors?
    – Mark Plotnick
    Nov 26 at 11:48










  • rpm -q -V mailx-8.1.1-44.2.2 gives no output.
    – sabarish jackson
    Nov 26 at 11:50






  • 1




    Looks like /bin/mailx is a symlink to /bin/mail. /bin/mail comes from the mailx package, but /bin/mailx is part of the redhat-lsb package. So please run rpm -q -V redhat-lsb and see if it shows any errors.
    – Mark Plotnick
    Nov 26 at 18:56
















The above command doesn't return anything. So I hope no verification errors.
– sabarish jackson
Nov 26 at 11:35




The above command doesn't return anything. So I hope no verification errors.
– sabarish jackson
Nov 26 at 11:35












rpm -ql mailx
– Ipor Sircer
Nov 26 at 11:41




rpm -ql mailx
– Ipor Sircer
Nov 26 at 11:41












Sorry, forgot the q. Does rpm -q -V mailx-8.1.1-44.2.2 show any verification errors?
– Mark Plotnick
Nov 26 at 11:48




Sorry, forgot the q. Does rpm -q -V mailx-8.1.1-44.2.2 show any verification errors?
– Mark Plotnick
Nov 26 at 11:48












rpm -q -V mailx-8.1.1-44.2.2 gives no output.
– sabarish jackson
Nov 26 at 11:50




rpm -q -V mailx-8.1.1-44.2.2 gives no output.
– sabarish jackson
Nov 26 at 11:50




1




1




Looks like /bin/mailx is a symlink to /bin/mail. /bin/mail comes from the mailx package, but /bin/mailx is part of the redhat-lsb package. So please run rpm -q -V redhat-lsb and see if it shows any errors.
– Mark Plotnick
Nov 26 at 18:56




Looks like /bin/mailx is a symlink to /bin/mail. /bin/mail comes from the mailx package, but /bin/mailx is part of the redhat-lsb package. So please run rpm -q -V redhat-lsb and see if it shows any errors.
– Mark Plotnick
Nov 26 at 18:56















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f484182%2fmailx-command-not-found%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f484182%2fmailx-command-not-found%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Morgemoulin

Scott Moir

Souastre