Hi All,
I have used the following syntax for sending email.
"mailx -s "process not running" userid@domain.com "
I am getting below error.
" mailx: not found "
Can anoy one please give the reason for this error.
I am using REDHAT server.
Hi All,
I have used the following syntax for sending email.
"mailx -s "process not running" userid@domain.com "
I am getting below error.
" mailx: not found "
Can anoy one please give the reason for this error.
I am using REDHAT server.
Looks like you don't have mailx installed. If you have root access you could try installing it with:
# yum install mailx
Assuming you typed exactly what you posted this error comes from your server looking for a program called "mailx -s" rather than "mailx". You need to lose the leading and trailing quotes and also provide some input to "mailx" for the mail body even if it is a null string. For example:
echo "" | mailx -s "process not running" userid@domain.com