You are not logged in.

#1 2009-08-12 16:17:31

keerthi
Member
Registered: 2007-11-18
Posts: 95

Need to mail command outputs to users (not SMTP or POP3 related)

I just need to mail a command's output to myself (my logged in user id). I tried

echo 'Hello?' | mail -s "Subject of mail" <my-login-id>

and I get

/usr/sbin/sendmail: No such file or directory

I installed mailx package but that didn't change anything.

Last edited by keerthi (2009-08-12 16:18:08)

Offline

#2 2009-08-12 23:11:13

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,223
Website

Re: Need to mail command outputs to users (not SMTP or POP3 related)

You still need an MTA such as postfix, qmail, exim or sendmail installed. The mailx package only provides a basic MUA which expects to be able to hand off to the MTA which is responsible for delivery (either to another system, or a local mailbox).

MTA = Mail (Transport|Transfer) Agent
MUA = Mail User Agent

Offline

#3 2009-08-13 16:29:33

keerthi
Member
Registered: 2007-11-18
Posts: 95

Re: Need to mail command outputs to users (not SMTP or POP3 related)

thanks for the pointer. though not very helpful it helped a bit.

Offline

#4 2009-08-13 22:48:17

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,223
Website

Re: Need to mail command outputs to users (not SMTP or POP3 related)

keerthi wrote:

though not very helpful it helped a bit.

This isn't Ubuntu, we point in the right direction, we don't hold hands and walk you all the way wink

Offline

Board footer

Powered by FluxBB