Bharati Raul wrote:
> Yes, I am already using sleep() function.
> After sending every mail I am giving sleep(3)
> seconds.
> I think that is sufficient. Or is this will create
> a problem?
Totally depends on the load seen by the server. There's no way to tell, you just have to monitor it. You could, however in your script check how many files have accumulated in the mail queue, and change the sleep habits depending on how many mails are queued...
> I heard about CRON job.
> I am not aware exactly what it does?
> Can you please tell me?
CRON is the scheduling agent for *nix operating systems. It allows you to run a script or program at a specified interval. You can also use the at daemon to schedule one-off jobs in *nix. YOu can find loads of tutorials on both online...
Cheers,
Jay Pipes
Community Relations Manager, North America, MySQL Inc.
Got Cluster?
http://www.mysql.com/cluster
Personal:
http://jpipes.com