Sendmail question
Is there a way to configure sendmail NOT to send messages with empty
bodies?
I have cron jobs that I want stderr and stdout to be mailed to users IF
there is any stderr or stdout from the script. But if there are no
messages, I (root) receive a "null body" error message and the users
receive a blank message. The norm is NOT to have any messages or
errors. My goal is to capture the abnormal conditions and mail those
messages to the proper parties and not rely on root to forward them.
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines:
http://fedoraproject.org/wiki/Mailing_list_guidelines
Relevant Pages
- Re: Win XP: Problem with shell scripting in Python
... return the error message into the string: ... the difference between STDOUT and STDERR, and the difference between buffered output and non-buffered output, and perhaps a few other things related to how STDIO behaves on modern computers... ... rewriting BAT files as a series of os.system or os.popen calls isn't exactly optimal; better take an hour to skim the "generic operating system services" section in the library reference, and use built-in functions wherever you can: ... (comp.lang.python) - Re: Sendmail question
... there is any stderr or stdout from the script. ... I receive a "null body" error message and the users ... It's better to do this on the script side rather than modifying ... (Fedora) - Re: tcltest errorOutput questions
... > to appear at stderr not stdout but that does not seem to be the case. ... The tcltest package ... {1 {your error message here}} ... (comp.lang.tcl) - FAQ 8.25 How can I capture STDERR from an external command?
... This message is one of several periodic postings to comp.lang.perl.misc ... both STDOUT and STDERR will go the same place as the ... script's STDOUT and STDERR, unless the systemcommand redirects them. ... You can also use file-descriptor redirection to make STDERR a duplicate ... (comp.lang.perl.misc) - FAQ 8.25 How can I capture STDERR from an external command?
... This message is one of several periodic postings to comp.lang.perl.misc ... both STDOUT and STDERR will go the same place as the ... script's STDOUT and STDERR, unless the systemcommand redirects them. ... You can also use file-descriptor redirection to make STDERR a duplicate ... (comp.lang.perl.misc) |
|