SUSE Enterprise 10.<br>Oops maybe there is no MTA is running<br><br>echo "test" | /usr/bin/mail -s "subject" root<br><br>returned me to the prompt with no error, but enter 'mail' and get no mail for root<br>
<br><br><div class="gmail_quote">On Tue, Apr 14, 2009 at 3:07 PM, Alan Buchel <span dir="ltr"><<a href="mailto:alan@communitytechnology.org.uk">alan@communitytechnology.org.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Nathan Friend wrote:<br>
> Took out the ; and added -b "Some text" same result. Also tried with<br>
> no luck:<br>
><br>
> echo "Moodle db backup failed" | /bin/mail -s "Moodle db backup failed" root<br>
><br>
> On Tue, Apr 14, 2009 at 1:44 PM, Mike Evans <<a href="mailto:mike@tandem.f9.co.uk">mike@tandem.f9.co.uk</a><br>
</div><div class="im">> <mailto:<a href="mailto:mike@tandem.f9.co.uk">mike@tandem.f9.co.uk</a>>> wrote:<br>
><br>
> oh and further to my earlier - you need a body of the mail - is that<br>
> what the ; is attempting to terminate? Not sure it will<br>
><br>
<br>
</div>which distro?<br>
<br>
Test any command first outside the script, for instance get this working<br>
before incorporating into script.<br>
<br>
echo "body" | /usr/bin/mail -s "subject" root<br>
<br>
make sure some sort of MTA is running on that system - sendmail is<br>
simple or postfix which will need a little config.<br>
<div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
Kent mailing list<br>
<a href="mailto:Kent@mailman.lug.org.uk">Kent@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/kent" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/kent</a><br>
</div></div></blockquote></div><br>