View Single Post
  #1 (permalink)  
Old 2006-04-06
ChrisA ChrisA is offline
Senior Member
 
Join Date: 2006-02-18
Posts: 103
Rep Power: 3
ChrisA has an average reputation (10+)
Default Sendmail command in cron script in SPLat

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.
Reply With Quote