RE: [PHP] Urgent help required for using Cron
| From: | Safal Solutions | Date: | Fri, 29 Aug 2003 01:36:59 +0000 |
| Subject: | RE: [PHP] Urgent help required for using Cron | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-161098@lists.php.net to get a copy of this message | ||
Dear Javier,
We have done the following as per your suggestion
15 17 * * * /path/to/your/php/binary /path/to/your/script.php
After editing and saving crontab file the following message pops up at the
commond prompt -
crontab:installing new crontab
crontab:error renaming cron/tmp.1885 to cron/root
rename: is a directory
crontab: edit left in /tmp/crontab.1885
It did not work. Please suggest what to do next?
Regards
Siva
-----Original Message-----
From: Javier Tacon [mailto:javier.tacon@private.com]
Sent: Thursday, August 28, 2003 5:17 PM
To: Safal Solutions
Subject: RE: [PHP] Urgent help required for using Cron
For example, you want execute a script every day at 09:00 am:
$ crontab -e
And put this line:
0 9 * * * /path/to/your/php/binary /path/to/your/script.php
Crontab only can say if the cron was executed correctly or not, but it
doesn't say if your script in php has sent the mail correctly or not.
For debug if the mail was successfully sent, develope the debug into your
script.
You can use a some mail classes that they have debug options (for example I
use phpmailer v1.65).
-----Mensaje original-----
De: Safal Solutions [mailto:safalsolutions@sancharnet.in]
Enviado el: jueves, 28 de agosto de 2003 13:32
Para: PHP General
Asunto: [PHP] Urgent help required for using Cron
Hi friends,
I have to send mail to people automatically at specified time . Our
environment is RedhatLinux 7.3 , Apache ,mysql and php. I am writing a
program in php to send the mail if some
Condition is met. I want to activate this program at specified time using
cron facility.
So, How can we do that? Can any one help me?.
I have another problem also. We want Cron to indicate ( through a message
or a mail) to us that a given task is completed or not. In the present
case Cron does a task of sending a mail to a user. After sending the mail
we want Cron to indicate to us that the mail was successfully sent or not
sent. This we want to know through a program because we want to use this as
a part of automation of sending mails.
Thanking you,
Siva
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php