Problem with Mail command: exec failed. errno=2.


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Problem with Mail command: exec failed. errno=2.
# 1  
Old 04-29-2008
Problem with Mail command: exec failed. errno=2.

I am trying to send email using the "mail" command. I keep getting an "exec failed. errno=2." message.

Here is one the commands I have tried:

mail test@mycompany.com < test1.out

Any ideas what may be causing this error msg?
# 2  
Old 04-29-2008
I thought it would have been obvious ...

First read here (point #5 is a must) ... https://www.unix.com/unix-dummies-que...om-forums.html

Then read here ... How do I send email? - The UNIX Forums

All too easy ... Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Failed to open tape device /dev/rmt/0mn:Device busy (errno = 16)

Hi, Unable to make tape backup, please help. /opt/ignite/bin/make_tape_recovery -a /dev/rmt/?mn -I -v -m tar -x inc_entire=vg00 * Creating local directories for configuration files and archive. ======= 04/25/16 16:28:08 IST Started /opt/ignite/bin/make_tape_recovery. (Mon... (4 Replies)
Discussion started by: anuragr
4 Replies

2. Shell Programming and Scripting

Mail command problem with " signs

Hello, I have compiled a perl script to extract email address from an email file and tried to send email as bash script but " signs are ommitted by the bash script. What am I doing wrong? I would appreciate if you could fix it. #!/bin/bash while read -r COL1 do echo "mail -s "This is a... (3 Replies)
Discussion started by: baris35
3 Replies

3. SCO

FTP problem with site exec command

Hello dear Users, I am for the first time in this forum. I come from Germany. Please excuse my bad englisch. My OS is SCO open Server Release 5. I have a problem whith FTP and the command "site exec" if I use the command "ftp> site chmod 777 /tmp/startkpf.sc 200 CHMOD command successful. ... (8 Replies)
Discussion started by: fla5do
8 Replies

4. UNIX for Dummies Questions & Answers

[Ultrix] /etc/init failed, errno 2

I am running the gxemul software under cygwin, Just when installing the .iso image, I got the error shown in the picture. Any ideas what's happening? Thanks Jack (1 Reply)
Discussion started by: lucky7456969
1 Replies

5. Ubuntu

problem in linux ubuntu 10.10 about mail command

Hi, My question is that is there any substitute command for mail in ubuntu because I'm trying to run it and it is showing error: command not found!! Will it need to download any specific package? If so please tell me how can I download that pkg. Thanks in advance. (1 Reply)
Discussion started by: nageshgautam
1 Replies

6. Shell Programming and Scripting

problem using exec command

Hello, i am trying to read one file in which questions are stored and then read the answers from keyboard. Here is what i came up with. But when i run it the contents of whole file gets displayed without taking any input from keyboard. Please help me where i went wrong. exec<questions... (1 Reply)
Discussion started by: salman4u
1 Replies

7. UNIX for Dummies Questions & Answers

Problem using unix mail command

Hello, When i am using mail command like this: mail -r prashant.aggarwal@xx.com -s "hiiii" prashant.aggarwal@xx.com < Content.txt i am abl eto dend a mail. Content.txt is a file from which contents are being reda But when i am trying to execute it thru a shell scipt like this it's giving ... (3 Replies)
Discussion started by: cprash.aggarwal
3 Replies

8. Shell Programming and Scripting

Problem with Mailx command to send mail with attachment

Hi, I am using mailx command to send a mail with attachment. It's working fine, but with attachment I am getting one extra attachment like (ATT00131.txt). I have tried to use unix2dos command also. But still I am getting the extra attachment. I am using the following code: subject="temp... (5 Replies)
Discussion started by: viswanatharv
5 Replies

9. Solaris

[ID 702911 mail.warning] gethostbyaddr(ip address) failed

Dear Gurus, was searching the forum for some related topic for this but couldn't find much. any experts or anyone who has face such below error messages before? and what does those error messages mean? was trying to do up a error message template for my user's reference. sendmail: ... (1 Reply)
Discussion started by: lweegp
1 Replies

10. Solaris

tmchild exec service failed erron = 2

I have a Solaris-9 box. When I log into it I get the following error message tmchild exec service failed erron = 2 . Any ideas !! Thanks Mike (2 Replies)
Discussion started by: mbjyork
2 Replies
Login or Register to Ask a Question