Cron is not working.

Status
Not open for further replies.

bosung

New Member
Messages
5
Reaction score
0
Points
0
I have read many many of your existing threads about cron jobs, but none of them works.

I am on a free account and I want to run a very simple mail.php script using cron.

I have mail.php at www.dreamweaver.x10.mx/b_renting/mail.phppleasedontclickthelink
which successfully sends me an email when I enter it in my browser.

on c-panel I go to cron jobs,
select every 5 minutes, and type
/usr/bin/php /home/bosung/public_html/b_renting/mail.php >>/home/bosung/public_html/b_renting/cron_log.txt 2>&1
*/5****/usr/bin/php /home/bosung/public_html/b_renting/mail.php >>/home/bosung/public_html/b_renting/cron_log.txt 2>&1

this is what I see where "bosung" is my cpanel username.

I have tried many many different ways and still no success.
I do not see any cron_log.txt and I don't see any email.
Please help!
=============================
It is working now. I think it didn't work before because I kept using "edit" instead of delete then add new one.
 
Last edited:

bosung

New Member
Messages
5
Reaction score
0
Points
0
I am getting some emails I can't tell if it is from cron job or people are just clicking on my link :(
 

bosung

New Member
Messages
5
Reaction score
0
Points
0
It started working, I think it didn't work before because I kept "edit"ing the command rather than delete then add new one.
 
Status
Not open for further replies.
Top