Re: mailx in script

2013-06-12 Thread Reindl Harald
Am 12.06.2013 10:19, schrieb Frank Murphy: >> what says /var/log/maillog > Does not appear to exist i am a postfix user > but have /var/log/exim/exim.log and ~/exim/panic.log > neither show anything than most likely nothing has happened did you test "mail whatever address" *outside a shell scr

Re: mailx in script

2013-06-12 Thread Reindl Harald
Am 12.06.2013 09:27, schrieb Frank Murphy: > Every time azureus restarts (crashes out), > I have a script to send an email. > > #!/bin/bash > mailx -s"Azureus has restarted" me@me.place \n > "It's probably crashed again." > > Put in the new line as was getting, > a second mail with: > Null mess

Re: mailx in script

2013-06-12 Thread Rick Stevens
On 06/12/2013 01:27 AM, Alexander Dalloz issued this missive: Am 12.06.2013 09:27, schrieb Frank Murphy: Every time azureus restarts (crashes out), I have a script to send an email. #!/bin/bash mailx -s"Azureus has restarted" me@me.place \n "It's probably crashed again." echo "It's probably c

Re: mailx in script

2013-06-12 Thread Frank Murphy
On Wed, 12 Jun 2013 10:27:35 +0200 Alexander Dalloz wrote: > Am 12.06.2013 09:27, schrieb Frank Murphy: > > #!/bin/bash > > mailx -s"Azureus has restarted" me@me.place \n > > "It's probably crashed again." > > echo "It's probably crashed again." | mail -s "Azureus has > restarted" me@me.place >

Re: mailx in script

2013-06-12 Thread Frank Murphy
On Wed, 12 Jun 2013 10:12:52 +0200 Reindl Harald wrote: Apologies for re-arranging Harald said something which got me thinking 1: 1: > mailx does nothing else than invoke the "sendmail" binary shipped > with sendmail/postfix/exim > > Am 12.06.2013 09:27, schrieb Frank Murphy: > > #!/bin/bash

Re: mailx in script

2013-06-12 Thread Alexander Dalloz
Am 12.06.2013 09:27, schrieb Frank Murphy: > Every time azureus restarts (crashes out), > I have a script to send an email. > > #!/bin/bash > mailx -s"Azureus has restarted" me@me.place \n > "It's probably crashed again." echo "It's probably crashed again." | mail -s "Azureus has restarted" me@me

Re: mailx in script

2013-06-12 Thread Frank Murphy
On Wed, 12 Jun 2013 10:12:52 +0200 Reindl Harald wrote: > well is your MTA running? > is "me@me.place" at the same machine and if not is /eta/aliases exim is running, me@my.place , is a different box, is set up in /etc/aliases, newaliases was run. > configured? what says /var/log/maillog Does

mailx in script

2013-06-12 Thread Frank Murphy
Every time azureus restarts (crashes out), I have a script to send an email. #!/bin/bash mailx -s"Azureus has restarted" me@me.place \n "It's probably crashed again." Put in the new line as was getting, a second mail with: Null message body; hope that's ok But, now am getting no mail. The scrip