I have the following command below as part of a cronjob. When I run the command via cron or at the command line, I get
Null message body; hope that's ok.
The contents of the email are empty but when I check the
/tmp/sdplogs.out file it has content in it.
/dproxy/scripts/cleanSDP2xLogs.sh sends output to the file
What am I doing wrong? Any help would be greatly appreciated.
$ /dproxy/scripts/cleanSDP2xLogs.sh | mail -s 'SDP2.X Prod LogArchiving Report' firstname.lastname@example.org < /tmp/sdplogs.out Null message body; hope that's ok