I have a serious problem with a cron job:
The cron job seems to be working correctly, it is part of a server monitoring script, and it seems to be setup correctly in cpanel:
-----------------------------------------------------
curl http://www.domain.com/path/to/cron/cron_page.php /dev/null 2&&1
-----------------------------------------------------
I use curl instead of GET because GET seems to use more of the CPU.
But I get an e-mail sent to the main e-mail account (username, not a mail account that I setup) every time the cron task runs (I have replaced certain info for security reasons):
-----------------------------------------------------
Subject: Cron &username@servername& http://www.domain.com/path/to/cron/cron_page.php
Message Content:
/bin/sh: http://www.domain.com/path/to/cron/cron_page.php: No such file or directory
-----------------------------------------------------
As I said, the server monitoring is working perfectly, but I can't figure out why it's sending all these e-mails, especially when I've specified the /dev/null part.
I have just recently noticed this problem, and I have an inbox full of about 20,000 + e-mails.
A customer brought it to my attention because they are running a very similar cron task to fetch a webpage, and their account quota was relatively small, so the huge number of e-mails pushed their space to the limit.
I would appreciate any help on this matter.
Thank-you
- Omar



LinkBack URL
About LinkBacks
Reply With Quote





