In NGX on the SPLat SmartCenter server, we have a script that FTPs our logs and writes the output to a /tmp/FTPlog.out file. At the end of the script we have a sendmail command:
more /tmp/FTPlog.out | /opt/CPsuite-R60/fw1/bin/sendmail -s CPTMGT-LogArchive
emailacct@xxx.com This script works great when it is invoked manually and I get the email, but when it executes via cron, then the script works but I don't get the email.
Does anyone know why sendmail does not work with cron? The first line of the script is: #!/bin/bash -x
Thanks.