MySQL Forums
Forum List  »  PHP

Re: Mysql Process
Posted by: Jay Pipes
Date: September 22, 2005 12:56PM

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

Options: ReplyQuote


Subject
Written By
Posted
September 20, 2005 11:04PM
September 21, 2005 05:15AM
September 21, 2005 10:51PM
Re: Mysql Process
September 22, 2005 12:56PM
September 22, 2005 10:03PM
September 23, 2005 07:05AM
September 25, 2005 11:17PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.