Email program using CRON

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Email program using CRON
# 1  
Old 09-06-2011
Email program using CRON

Hi Guys...

I have a bulk email program that sends out an email to a subscribed mail list.
The list contains around 2000 addresses.
My server is Centos 5 64bit
PHP 5.2
Mysql 5.1

The program is set to send emails in batches of 100.
Cron is set to run every minute

Now for the problem:
From a list of 2000 address, cron send multiple copies.
i.e. it can send as many as 3000 emails to 2000 addresses.

Can anybody think of anything that could cause this to happen.

John C
# 2  
Old 09-06-2011
First thing that comes to mind is an error in the way that you break the list into 100's. Please show that part of the code (at least).

It is difficult to diagnose a programming problem without seeing the code and sample data.
# 3  
Old 09-06-2011
Hi joeyg...

Many thanks for taking the time and trouble to try and help me.
I do realise that it is just about impossible to give a definative answer without much more information.
If you would like to help me, please PM me your email address I will send you the program so that you can take a look. It is around 650Kb, and would require installing on a Windows computer.
I will then be able to tell you what I am doing and you can see it at your end.

Regards,

John C
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Program not running from the cron scheduler

Good Afternoon, I have a sh script that the admin added to the cron schedule. It runs fine when I run it manually...but not when scheduled. I added the path that is found for my user to the script. Still no luck. Any ideas what I should look at? Thanks Marty (8 Replies)
Discussion started by: MSpeare
8 Replies

2. Shell Programming and Scripting

I want to send an email after cron job

I am using centos 6.4. I have a few cron jobs setup and they all work fine. However, I would like to enhance one of the crons. This is what I have at the moment: nice rsync -au /home/samba/wsaler/* /home/samba/wsaler.backup/wsaler.backup18pm date | /bin/mail -s "wsaler 3:00pm backup... (8 Replies)
Discussion started by: countrydj
8 Replies

3. Shell Programming and Scripting

cron job and running program

Dear experts, I have this cronjob * */2 * * * $path/supervisor.sh The supervisor script is checking another script, which initializes the final scripts in multiple directories. Note that the supervisor script runs without the cronjob. In each directory, I have the following script: ... (2 Replies)
Discussion started by: TheTransporter
2 Replies

4. UNIX for Advanced & Expert Users

Email engine cron problem.

We have an email engine in our corporation which is installed in Solaris based machine. It is currently facing delays in transactions. So a temporary work around was deployed that is a cronjob was made for restarting email engine every hour. We tested in lab system and it worked pretty okay but in... (10 Replies)
Discussion started by: nixhead
10 Replies

5. UNIX for Dummies Questions & Answers

Cron to delete email help needed

I would like to know if I can place a cron job (and what it might be of course) to delete all the mail in an inbox? Here are the servers specs: Operating systemLinuxService StatusClick to ViewKernel version2.6.28.9Machine Typei686Apache version2.2.11 (Unix)PERL version5.8.8Path to... (2 Replies)
Discussion started by: markmatu
2 Replies

6. Shell Programming and Scripting

Calling C program from cron results in no output

I can call a C program from the shell and results are outputted as normal. The C program processes some files and spits out a .csv file. If I scheduled it in cron, there is no output. If their a special way to schedule C programs in cron? thanks & regards (1 Reply)
Discussion started by: hazno
1 Replies

7. AIX

Cron Job notification email

Hi, I'm fairly new to Aix and am looking for some help on the following. I have setup a cron job under root and want it to send the email once it's run to an external email address. I can get it to send the output in an email to me by using mail on the end of the crontab entry. But I would... (1 Reply)
Discussion started by: elmesy
1 Replies

8. AIX

Problem with Cron Email Notification

I have two different cron jobs that run on the same days. The jobs are 7 hours apart. Both jobs are set to send notification emails when they start running. Both jobs always run successfully, but I only receive an email from the first job. I never get the email from the second job. ... (1 Reply)
Discussion started by: sasaliasim
1 Replies

9. UNIX for Dummies Questions & Answers

Cron Email Problem

I have two different cron jobs that run on the same days. The jobs are 7 hours apart. Both jobs are set to send notification emails when they start running. Both jobs always run successfully, but I only receive an email from the first job. I never get the email from the second job. ... (0 Replies)
Discussion started by: sasaliasim
0 Replies

10. UNIX for Dummies Questions & Answers

email when cron fails

I have a cronjob scheduled to run everyday. How can I obtain an email if and only if the cronjob fails? I am using Sun Solaris (ksh). :rolleyes: (7 Replies)
Discussion started by: inpavan
7 Replies
Login or Register to Ask a Question