Cronjob not working.

Status
Not open for further replies.

mahirocz

New Member
Messages
25
Reaction score
0
Points
0
Sir, in my hosting account, cronjobs doesn't work. Can you please fix this problem? It's urgent for me.

thanks and regards,
Mahesh S
 

Jake

Developer
Contributors
Messages
4,057
Reaction score
5
Points
0
Hello mahirocz,

Can you please post the cronjob that you are having trouble runnning?

Jake
 

mahirocz

New Member
Messages
25
Reaction score
0
Points
0
Sir, when i checked now, cronjobs are working perfectly. But a notification email is not sent to me. Can you fix this?

the command i run is: /usr/bin/php -f /home/mahirocz/www/cron_test.php >/dev/null 2>&1
 

Jake

Developer
Contributors
Messages
4,057
Reaction score
5
Points
0
Hello mahirocz,

The part, >/dev/null 2>&1, is actually stopping the emails from being sent. Remove that part and it should work.

Try: /usr/bin/php -q /home/mahirocz/www/cron_test.php

Jake
 

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
Points
63
Someone disabled the email notifications. Simple as that.

Please read the entire topic before posting; Jake has already located what we think to be the source of the problem, and if it was that someone disabled the notifications (as in an admin of x10), there'd be a lot more posts about it by now I'm sure :/
 

dlukin

New Member
Messages
427
Reaction score
25
Points
0
/usr/bin/php /home/dlukin/public_html/foo.php

That is what I use. It works.
It does not generate an email.
If you change the path to php or to the file, it fails. It does not generate an email.

Have you tested it on a free server? I am on Lotus.
 

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
Points
63
/usr/bin/php /home/dlukin/public_html/foo.php

That is what I use. It works.
It does not generate an email.
If you change the path to php or to the file, it fails. It does not generate an email.

Have you tested it on a free server? I am on Lotus.

I'll leave this one up for Jake in this case; I don't have a free account setup (I'm on paid); the only thing I do know at the moment with paid is that in my case it's generating a lot of almost-blank emails; only thing I personally can think of is whether or not the contact email set for you in cpanel on the cronjob page? If there's not one there it has no where to send the results to. I think it requires that though :S

Edit: Or if they're all getting instantly spambinned by the email provider, which is possible but unlikely.
 
Last edited:

dlukin

New Member
Messages
427
Reaction score
25
Points
0
Before this gets closed, does anybody know the answer why the email notifications for cron jobs have stopped?

By plan? By accident?
 

mahirocz

New Member
Messages
25
Reaction score
0
Points
0
Im still not getting the email.

For me, the email is very necessary because the cronjob is an essential part of my site. I need to know whether cronjob is working properly and in a timely manner.

Anyone please fix this issue..
 

mahirocz

New Member
Messages
25
Reaction score
0
Points
0
The cronjob is now not working for my account :( please fix this issue as soon as possible............
 

Derek

Community Support Force
Community Support
Messages
12,882
Reaction score
186
Points
63
We are upgrading the hardware on Lotus...
We have started moving Lotus accounts over to our new setup and hardware. Accounts are being moved with databases with data to follow. There is no risk of lost data with the Lotus move.

http://status.x10hosting.com
 

zapzack

New Member
Messages
606
Reaction score
19
Points
0
I'm guessing that the emails were disabled because they don't want thousands of emails being sent out a day about cron jobs. If you need daily cron job emails, you could setup a mail script inside the php script being ran by the cron job to email you when it runs.
 
Last edited:
Status
Not open for further replies.
Top