<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi,</p>
<p>There are two ways to run cron:<br /><strong>1. Run directly PHP file: vtigercron.php</strong><br />But you need add in IF "<strong>true &&</strong>" e.x. <br />if(<strong>true &&</strong> PHP_SAPI === "cli" || (isset($_SESSION["authenticated_user_id"]) && isset($_SESSION["app_unique_key"]) && $_SESSION["app_unique_key"] == $application_unique_key)){</p>
<p>But this method is not completely safe</p>
<p><strong>2. Use the script SH: cron/vtigercron.sh</strong><br />A few actions are required:</p>
<ul>
<li><span style="font-size: 10pt;">Grant permissions 777 or 755 (cron/vtigercron.sh)</span></li>
<li><span style="font-size: 10pt;">Set the path to PHP e.x. export USE_PHP=php , USE_PHP=/usr/local/php53/bin/php</span></li>
<li><span style="font-size: 10pt;">Check whether PHP.ini configuration for CLI console is correct</span></li>
</ul>
<div>---<br />
<p>Z poważaniem / Regards</p>
<div> </div>
<div><strong>Mariusz Krzaczkowski</strong></div>
<div><em>Director of Product Development</em></div>
<div>M: +48 884-998-123<br />E: <a title="Mail do Mariusz Krzaczkowski" href="mailto:m.krzaczkowski@yetiforce.com" rel="noreferrer">m.krzaczkowski@yetiforce.com</a></div>
<hr />
<p><span>We created an innovative open source project called YetiForceCRM. You can test it </span><a href="https://test.yetiforce.com/" rel="noreferrer">here</a><span>, </span><a href="https://github.com/YetiForceCompany/YetiForceCRM" rel="noreferrer">download</a><span> it for free or read its </span><a href="https://yetiforce.com/en/documentation.html" rel="noreferrer">documentation</a><span>. Follow us on </span><a href="https://twitter.com/YetiForceEN" rel="noreferrer">Twitter</a><span> to get real-time info about new functionalities and articles.</span></p>
</div>
<p> </p>
<p>W dniu 2015-07-01 10:04, Alan Lord napisał(a):</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">On 01/⁠07/⁠15 08:30, Christophe Humbert wrote:
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">Hello Guys<br /><br /> until now I was using a webcron to launch vtigercron.php but I would<br /> like ti use the cron of my shared hosting (no access to shell) and when<br /> I am launching the vtigercron.php through the cron I have the following<br /> : error reading from the headers  anyone an idea</blockquote>
<br /> I would try and use the shell helper script rather than run php directly.<br /><br /> So your cron entry looks like:<br /><br />
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">*/⁠15 * * * * sh /⁠path/⁠to/⁠vtiger/⁠cron/⁠vtigercron.sh</blockquote>
<br /> <rant><br /> Shared hosts are a complete PITA.<br /><br /> Some shared hosts limit the version of the PHP cli your cron can access.<br /><br /> Another thing we found with our GeoTools module on shared hosts can be that the cron jobs are limited to some arbitrary time and they can be terminated by the shared hosting engine (CPanel, Plesk or whatever) so be aware that if you have a long job (like an import or loads of emails/workflows) then the script might get killed prematurely.<br /> </⁠rant><br /><br /> Al<br /><br /><br /><br /><br /> _______________________________________________<br /><a href="http://www.vtiger.com/">http://www.vtiger.com/</a></div>
</blockquote>
</body></html>