SUSE Enterprise 10.<br>Oops maybe there is no MTA is running<br><br>echo &quot;test&quot; | /usr/bin/mail -s &quot;subject&quot; root<br><br>returned me to the prompt with no error, but enter &#39;mail&#39; 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">&lt;<a href="mailto:alan@communitytechnology.org.uk">alan@communitytechnology.org.uk</a>&gt;</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>
&gt; Took out the ; and added -b &quot;Some text&quot;  same result.  Also tried with<br>
&gt; no luck:<br>
&gt;<br>
&gt; echo &quot;Moodle db backup failed&quot; | /bin/mail -s &quot;Moodle db backup failed&quot; root<br>
&gt;<br>
&gt; On Tue, Apr 14, 2009 at 1:44 PM, Mike Evans &lt;<a href="mailto:mike@tandem.f9.co.uk">mike@tandem.f9.co.uk</a><br>
</div><div class="im">&gt; &lt;mailto:<a href="mailto:mike@tandem.f9.co.uk">mike@tandem.f9.co.uk</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     oh and further to my earlier - you need a body of the mail - is that<br>
&gt;     what the ; is attempting to terminate?  Not sure it will<br>
&gt;<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 &quot;body&quot; | /usr/bin/mail -s &quot;subject&quot; 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>