[CentOS] how to set term environment for cronjobs?

Rudi Ahlers rudiahlers at gmail.com
Tue Sep 30 20:30:29 UTC 2008


On Tue, Sep 30, 2008 at 6:31 PM, Kai Schaetzl <maillists at conactive.com> wrote:
> Rudi Ahlers wrote on Tue, 30 Sep 2008 17:44:02 +0200:
>
>> It has to run this way, since the webpage
>> is on a Windows server, and the Windows scheduled tasks doesn't work
>> as well.
>
> I'd rather look there why it doesn't work for you. Scheduled tasks works
> just fine on my Windows servers. I'm not getting an email from them, if
> that is what you want, though. Btw, you can also install cron on Windows!
>
> Kai
>
> --
> Kai Schätzl, Berlin, Germany
> Get your web at Conactive Internet Services: http://www.conactive.com
>
>
>
> _______________________________________________

Hi Kai,

Even though it would be ideal for it to run on the Windows server, the
scheduled tasks simple doesn't work reliably. The script that needs to
be triggered is WHMCS's (http://www.whmcs.com)'s billing & support
crons. The support cron needs to run every 5 minutes, and the billing
one every hour.

When I set it up on the Windows server, it will work fine for a week
or even 3, and then stops working without any warnings. According to
Windows, it is running, but I never actually get the billing to work.
Our clients was supposed to be invoiced on the 25th, and they didn't
get their invoices, and it's now the 30th already.

So, I decided to use something that I know, cron.

I simply need to call 2 php scripts via a website - very simple todo,
but cron tends to give me these errors for some odd reason, and the
scripts doesn't run on the remote website.



-- 

Kind Regards
Rudi Ahlers


More information about the CentOS mailing list