Disable null body in Linux mail

Hi guys, I'm trying to disable a certain cronjob from sending an empty email to my account. From google, I came across this parameter "-e" which ought to tell mailx not to send empty messages, but the version that I have on Centos 5.5 does not recognize that parameter. I have also been trying to see where I can use the "set nonullbody" parameter, but :-( Any suggestions? Me.

Hi Simon, I had an issue with crond on Cent OS apparently there is a bug or something wrong with the cron daemon, I had to re-install vixie-cron to try sort it. Try a re-install. Cheers TheMburu On Mon, May 17, 2010 at 12:51 PM, Simon Mbuthia <simon.mbuthia@gmail.com>wrote:
Hi guys,
I'm trying to disable a certain cronjob from sending an empty email to my account. From google, I came across this parameter "-e" which ought to tell mailx not to send empty messages, but the version that I have on Centos 5.5 does not recognize that parameter. I have also been trying to see where I can use the "set nonullbody" parameter, but :-(
Any suggestions?
Me.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Conservatism is the adherence to the old tried against the new untried.

Hi George, The null message body is generated by mail/mailx, not the cron daemon. Looks to me like the Cron daemon is running OK. Actually, I am running the script manually as in: sh /etc/cron.daily/script.sh After some time I get an output message saying "Null message body; hope that's ok" On googling this message, I found that it is generated by mailx. The script that I am running in the cron folder contains a mail command that is supposed to send me an email containing the output of the scheduled command. Now I am looking for a way to disable mailx from sending emails with blank bodies. Hope I have successfully convinced you that the null body has nothing to do with the cron daemon :) Me. On 17 May 2010 13:05, George Njoroge <themburu@gmail.com> wrote:
Hi Simon,
I had an issue with crond on Cent OS apparently there is a bug or something wrong with the cron daemon, I had to re-install vixie-cron to try sort it. Try a re-install.
Cheers TheMburu
On Mon, May 17, 2010 at 12:51 PM, Simon Mbuthia <simon.mbuthia@gmail.com>wrote:
Hi guys,
I'm trying to disable a certain cronjob from sending an empty email to my account. From google, I came across this parameter "-e" which ought to tell mailx not to send empty messages, but the version that I have on Centos 5.5 does not recognize that parameter. I have also been trying to see where I can use the "set nonullbody" parameter, but :-(
Any suggestions?
Me.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Conservatism is the adherence to the old tried against the new untried.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
participants (2)
-
George Njoroge
-
Simon Mbuthia