Error related to mailx function


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Error related to mailx function
# 1  
Old 10-11-2010
Java Error related to mailx function

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.
# 2  
Old 10-11-2010
Looks like you don't have mailx installed. If you have root access you could try installing it with:

Code:
# yum install mailx

# 3  
Old 10-11-2010
Quote:
"mailx -s "process not running" userid@domain.com "
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:

Code:
echo "" | mailx -s "process not running" userid@domain.com

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help in an issue related to mailx

Hello, I have a file temp.txt with the below contents : Sep 9 03:04:51 adcsdp01 MAPDR2_00: Unable to open trace file adpstartarv.log. (Error 110 Resource temporarily unavailable) Sep 9 03:05:35 adcsdp01 MAPDR2_00: SAP Service ADPMR2_00 successfully started. Sep 9 03:04:51 adcsdp01... (7 Replies)
Discussion started by: rahul2662
7 Replies

2. UNIX for Advanced & Expert Users

Getting library related error while executing a script

Hi , while executing below lines of a script compress /var/opt/MMS/NSM/dumpAlarm.1* find /var/opt/MMS/NSM/dumpAlarm.1*.Z -mtime +30 -exec rm {} \; i am getting below error ld.so.1: ls: fatal: vhost.so: open failed: No such file or directory Killed also i have... (7 Replies)
Discussion started by: Jcpratap
7 Replies

3. Shell Programming and Scripting

need downloading related help...but its not related to unix

Hi All, I am trying to dowmload the zip file "zkManageCustomers.zip " but i dont have access. Can anyone help me to download this file See the below link- http://www.ibm.com/developerworks/opensource/library/wa-aj-open/index.html?ca=drs- Please help me as early as... (1 Reply)
Discussion started by: aish11
1 Replies

4. UNIX for Dummies Questions & Answers

Email ids trucated in Mailx function

I wanted to send email to list of people using mailx in unix. I am getting the emailds from a oracle table and getting the ids in a variable. Shell script is shown below: ----------------------------------------------------------------------- filename=testdata921 export filename... (5 Replies)
Discussion started by: sasi02
5 Replies

5. Solaris

mailx -s is showing an error

Error is like /users/d12381/check.sh: mail_sysadmin@mycompany: not found Plz help me to sort out this issue (6 Replies)
Discussion started by: Renjesh
6 Replies

6. UNIX for Dummies Questions & Answers

Using mailx In A Function

All, I have a ksh script running on HP-UX (B.11.23 U ia64) that calls mailx and works the way I want. But I am modifying my script so that it uses functions instead of processing in-line. When I moved the mailx stuff into a function, it won't send the mail. It hangs and I have to Ctrl-C to get... (1 Reply)
Discussion started by: GregWold
1 Replies

7. Shell Programming and Scripting

getting mailx error

Hi, I was using SunOS 5.6. I have used the mailx command in below fashion mailx -s"RE: WES 'ftp' alert...no HDR record" ushman@lucent.com Last week only I upgraded the Operating System from SunOS 5.6 to SunOS5.9. But after upgrading the OS I am getting the following error. The flags you... (1 Reply)
Discussion started by: surjyap
1 Replies

8. Programming

help me with the error of Java related to UNIX

Can you help me with my code? I wrote a Java program and ran it in gdb, the debugger said that : (gdb) run handhelditems 1 1000 Starting program: /home/wqq/crawl/handhelditems/crawl_what_i_want handhelditems 1 1000 Program received signal SIGPWR, Power fail/restart. (2 Replies)
Discussion started by: cf.george
2 Replies

9. UNIX for Dummies Questions & Answers

mailx error message : mailx: NUL changed to @

If I use the "Mail" link instead of the "mail" link to ../mailx I get this error. Mail so-n-so @whatever.com mailx: NUL changed to @ Unknown command: "postmaster" The email still goes through but i get the error. If I use "mail" it goes thru without the error. Any ideas?? (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies

10. UNIX for Advanced & Expert Users

mailx error

When I try to send a mail thru mailx command, my mail isnt delivered to the destination. When I type 'mail' from $HOME directory, I see the following error. Final-Recipient: RFC822; myname@company.com Action: failed Status: 5.1.2 Remote-MTA: DNS; mailhost.corp.company.com Diagnostic-Code:... (2 Replies)
Discussion started by: Deepa
2 Replies
Login or Register to Ask a Question