Cron for Notifies.php

Do I have to have this send me an email everytime it "does its thing"?

It is sending me 144 emails in a 24 hour period. Is there any way I can have the emails limited to just once a day and still have the script process what it needs to?

Thanks...

Quote · 26 Jul 2008

A snippet from UnixGeeks

root@pingu # cat /etc/crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly

The first part is almost self explanatory; it sets the variables for cron.

SHELL is the 'shell' cron runs under. If unspecified, it will default to
the entry in the /etc/passwd file.

PATH contains the directories which will be in the search path for cron
e.g if you've got a program 'foo' in the directory /usr/cog/bin, it might
be worth adding /usr/cog/bin to the path, as it will stop you having to use
the full path to 'foo' every time you want to call it.

MAILTO is who gets mailed the output of each command. If a command cron is
running has output (e.g. status reports, or errors), cron will email the output
to whoever is specified in this variable. If no one if specified, then the
output will be mailed to the owner of the process that produced the output.

HOME is the home directory that is used for cron. If unspecified, it will
default to the entry in the /etc/passwd file.

Now for the more complicated second part of a crontab file.
An entry in cron is made up of a series of fields, much like the /etc/passwd
file is, but in the crontab they are separated by a space. There are normally
seven fields in one entry. The fields are:

minute hour dom month dow user cmd

minute This controls what minute of the hour the command will run on,
and is between '0' and '59'
hour This controls what hour the command will run on, and is specified in
         the 24 hour clock, values must be between 0 and 23 (0 is midnight)
dom This is the Day of Month, that you want the command run on, e.g. to
run a command on the 19th of each month, the dom would be 19.
month This is the month a specified command will run on, it may be specified
numerically (0-12), or as the name of the month (e.g. May)
dow This is the Day of Week that you want a command to be run on, it can
also be numeric (0-7) or as the name of the day (e.g. sun).
user This is the user who runs the command.
cmd This is the command that you want run. This field may contain
multiple words or spaces.

Quote · 26 Jul 2008

 

Do I have to have this send me an email everytime it "does its thing"?

 

It is sending me 144 emails in a 24 hour period. Is there any way I can have the emails limited to just once a day and still have the script process what it needs to?

 

Thanks...

 

 

YES... She wanted once a day not to turn it off. But I was wondering were that check box went. I knew it was somewhere. THANKS for that! Someone else ((forget who)) wanted to turn it off.

Quote · 26 Jul 2008

Thanks sammie and theGhost....

I'm definitely no expert here...

I guess my question really is: I understand how to change how often the script processes an email like let's say from every 10 minutes to once at midnight....(I actually read the install.txt hooray!)

But what I would like to know if I change the cron to once in 24 hour period, does it mean that when Users click to get a forgot password, use the ContactUs or I send out an Admin email....does this mean that these emails will only be processed once in a 24 hour period?

I am just trying to better understand the script....because right now ixwebhosting.com is giving me all kinds of grief with regards to how many emails are going out....they will only allow 300 a day, argh....

Do I have to have this send me an email everytime it "does its thing"?

It is sending me 144 emails in a 24 hour period. Is there any way I can have the emails limited to just once a day and still have the script process what it needs to?

Thanks...

YES... She wanted once a day not to turn it off. But I was wondering were that check box went. I knew it was somewhere. THANKS for that! Someone else ((forget who)) wanted to turn it off.

Quote · 26 Jul 2008

What I would like to know if I change the cron to once in 24 hour period, does it mean that when Users click to get a forgot password, use the ContactUs or I send out an Admin email....does this mean that these emails will only be processed once in a 24 hour period?

I am just trying to better understand the script....because right now ixwebhosting.com is giving me all kinds of grief with regards to how many emails are going out....they will only allow 300 a day, argh...

Quote · 27 Jul 2008
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.