this-> AddCronJob

(Caronte Pcode version 2.0)

Description

int this->AddCronJob(string job, optional string signature default null);

Add the job to the cron tab of Caronte Antispam . The job string must be in a valid format. The function return 1 if success, 0 if not.

The job can have a signature value , this can help in a better control of it.

Example.

Source:

CS_ADMIN_SCRIPT this = new CS_ADMIN_SCRIPT($_this);

int Main(CAdminRequest pRequest, CAdminResponse pResponse)
{

this->AddCronJob("30 12 * * * script.cs","SIGNSCRIPT");

return 0;

}