.\" $HeadURL$ $LastChangedRevision$ .\" .pso ade-config --format=man .so \*[ade_include_prefix]/ade.man .pso srf-config --format=man .TH MAILX\-IF\-NOT\-EMPTY 1 "ADE_APP_TOKEN_RELEASE_DATE_MAN" .SH NAME mailx\-if\-not\-empty \- send a possibly empty mail .br .ne 5 .SH SYNOPSIS .B mailx\-if\-not\-empty [ .I mailx\-options ] [ .I mailx\-arguments ] .br .ne 5 .SH DESCRIPTION .B Mailx\-if\-not\-empty is a simply wrapper around .B mailx\fR(1), which will not send the submitted email if the body is empty. It is intended to prevent .B srf\fR(1) triggering two emails (the first empty and the second stating that the first is empty) when it has nothing to report, but could be useful in other situations; e.g. for any silent command piped to .B mailx\fR(1) in a cronjob (see .B cron\fR(8)). .br .ne 5 .SH CONFIGURATION None. .br .ne 5 .SH OPTIONS See .B mailx\fR(1). .br .ne 5 .SH EXIT STATUS If no body is provided then the return status is zero. For all other situations see .B mailx\fR(1). .br .ne 5 .SH FILES See .B mailx\fR(1). .br .ne 5 .SH ENVIRONMENT VARIABLES See .B mailx\fR(1). .br .ne 5 .SH EXAMPLES The following command lists the files in /tmp which are bigger than 50KB and emails the results to root. If there are no such files then no email is sent. .IP .nf .fam C .B find /tmp -type f -size +50k -ls | mailx-if-not-empty root .fam T .fi .br .ne 5 .SH CAVEATS None. .br .ne 5 .SH STANDARDS This manual page documents version ADE_APP_TOKEN_RELEASE_ID of .B mailx\-if\-not\-empty\fR. .br .ne 5 .SH SEE ALSO cron(1), mailx(1), srf(1) .br .ne 5 .SH AUTHOR ADE_APP_TOKEN_AUTHOR_NAME .br .ne 5 .SH COPYRIGHT & DISTRIBUTION POLICY Copyright (C) 2009-ADE_APP_TOKEN_RELEASE_YEAR ADE_APP_TOKEN_AUTHOR_NAME \*[ade_standard_copyright_component]