Cronjob or sendmail sends mutiple emails
I'm experiencing an unusual problem. I have a cronjob that runs weekly at 2am, the script uses nmap to scan servers to look for open ports. Once the script is finished running it sends out a nicely formatted email with the results. Here's the thing that's driving me crazy the script or sendmail sends out multiple copies of the same message one after the other a minute apart for each (it does this about 20 times). So first thought was the sendmail part was caught in a loop, but it's not, second thought was to run the script manually and it works as expected. So the last thing I tried was to reschedule the cronjob at a different time, in this case I rescheduled the cronjob to kickoff in 10 minutes so I could actually watch it (in this case 6:30P) - I did log off the server before the job ran. The result was the script ran as expected.
Any ideas or pointers would be great!