<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$language.lblAdmin} : {$language.lblEmailTemplats}</title>
{include file='CommonStyles.tpl'}
{include file='CommonJavaScript.tpl'}
<link href="file:///D|/wamp/www/version-resmi/multi-v2/application/core/views/frontend/standard/{$view_styles}/email-template.css" rel="stylesheet" type="text/css" />
<link href="file:///D|/wamp/www/version-resmi/multi-v2/application/core/views/frontend/standard/{$view_styles}/colorbox.css" rel="stylesheet" type="text/css" />
{include file='CommonCustomStyles.tpl'}
</head><body>
<div class="outer_container">
  {include file='CommonTop.tpl'}
  <!--End:Header Container-->
  <!--***********************************************************************START CONTAINER SECTION******************************************************-->
  <div class="content_container">
   <div class="content_wrapper">
    <h2>Cron Job Schedule Information</h2>     
  <!--End: Right Block-->
  <!-- Inner Content Container starts-->
  <div class="inner_content_wrapper"> 
       <h2>Steps to Set Crontab in Shell</h2>      
                 <div>
                 In Linux, Cron is a daemon/service that executes shell commands periodically on a given schedule. Cron is driven by a crontab, a configuration file that holds details of what commands are to be run along with a timetable of when to run them.
                <p> <strong>Step 1:</strong>  Login to the Shell</p>
                <ul><li>
                  1. Please make sure that your website is accessible from the machine/server you are setting the cron by issueing : <strong>curl <a href="www.your-website.com">www.your-website.com</a></strong></li><li>
                  2. Set your favourite editor to open the crontab file by issuing the command : <strong>export EDITOR=nano</strong></li></ul>
                 <p><strong>Step 2: </strong>If you are getting the text version of your site which looks like an html code, probably it means your website is accessible. Now in the shell issue the command : <strong>crontab -e</strong></p>
                <p> <strong>Step 3:</strong> Now you will be seeing a linux text editor called nano which is opened the plain text file crontab, you can just paste the below copied cron tasks in your choice of time by just <strong>right clicking in the editor</strong>.</p>
                <div>
<table style="font-size: 12px; font-family: arial;" width="100%" border="0" cellspacing="5" cellpadding="0">
<tbody>
<tr>
<td align="left" valign="middle" width="4%">0</td>
<td align="left" valign="middle" width="4%">0</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="56%">curl --silent --compressed <a href="{$siteUrl}/cron/dailymail/producttypekey/product/">{$siteUrl}/cron/dailymail/producttypekey/product/</a></td>
<td align="left" valign="middle" width="24%">> this cron will run at 12:00 AM</td>
</tr>
<tr>
<td align="left" valign="middle" width="4%">5</td>
<td align="left" valign="middle" width="4%">0</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="56%">curl --silent --compressed <a href="{$siteUrl}/cron/dailymail/producttypekey/now_product/">{$siteUrl}/cron/dailymail/producttypekey/now_product/</a></td>
<td align="left" valign="middle" width="24%">> this cron will run at 12:05 AM</td>
</tr>
<tr>
<td align="left" valign="middle" width="4%">10</td>
<td align="left" valign="middle" width="4%">0</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="56%">curl --silent --compressed <a href="{$siteUrl}/cron/dailymail/producttypekey/product_product/">{$siteUrl}/cron/dailymail/producttypekey/product_product/</a></td>
<td align="left" valign="middle" width="24%">> this cron will run at 12:10 AM</td>
</tr>

<tr>
<td align="left" valign="middle" width="4%">15</td>
<td align="left" valign="middle" width="4%">0</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="56%">curl --silent --compressed <a href="{$siteUrl}/cron/dailymail/producttypekey/getaway_product/">{$siteUrl}/cron/dailymail/producttypekey/getaway_product/</a> </td>
<td align="left" valign="middle" width="24%">> this cron will run at 12:15 AM</td>
</tr>

<tr>
<td align="left" valign="middle" width="4%">20</td>
<td align="left" valign="middle" width="4%">0</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="56%">curl --silent --compressed <a href="{$siteUrl}/cron/businessproductmail/">{$siteUrl}/cron/businessproductmail/</a></td>
<td align="left" valign="middle" width="24%">> this cron will run at 12:20 AM</td>
</tr>
<tr>
<td align="left" valign="middle" width="4%">25</td>
<td align="left" valign="middle" width="4%">0</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="56%">curl --silent --compressed <a href="{$siteUrl}/cron/productcertificate/">{$siteUrl}/cron/productcertificate/</a>   </td>
<td align="left" valign="middle" width="24%">> this cron will run at 12:25 AM</td>
</tr>
<tr>
<td align="left" valign="middle" width="4%">30</td>
<td align="left" valign="middle" width="4%">0</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="56%">curl --silent --compressed <a href="{$siteUrl}/cron/cancelproducts/">{$siteUrl}/cron/cancelproducts/</a> </td>
<td align="left" valign="middle" width="24%">> this cron will run at 12:30 AM</td>
</tr>
</tbody>
</table></div>
			<p><strong>Step 4:</strong> Just save the copied content to the file by clicking CTRL+X it will prompt you to confirm the changes just press Y</p>
			<p><strong>Step 5:</strong> Thats it, you just configured the cron. You can see the scheduled cron jobs by entering the command : crontab -l   </p>   
         <strong>Crontab Syntax:-</strong>   
<table style="font-size: 12px; font-family: arial;" width="100%" border="0" cellspacing="5" cellpadding="0">
<tbody>
<tr>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="80%">curl --silent --compressed <a href="{$siteUrl}/cron/dailymail/producttypekey/product/">{$siteUrl}/cron/dailymail/producttypekey/product/</a></td>
</tr>
<tr>
<td align="left" valign="middle" width="4%">^</td>
<td align="left" valign="middle" width="4%">^</td>
<td align="left" valign="middle" width="4%">^</td>
<td align="left" valign="middle" width="4%">^</td>
<td align="left" valign="middle" width="4%">^</td>
<td align="left" valign="middle" width="80%"></td>
</tr>
<tr>
<td align="left" valign="middle" width="4%">|</td>
<td align="left" valign="middle" width="4%">|</td>
<td align="left" valign="middle" width="4%">|</td>
<td align="left" valign="middle" width="4%">|</td>
<td align="left" valign="middle" width="4%">|</td>
<td align="left" valign="middle" width="80%"></td>
</tr>
<tr>
<td align="left" valign="middle" width="4%">|</td>
<td align="left" valign="middle" width="4%">|</td>
<td align="left" valign="middle" width="4%">|</td>
<td align="left" valign="middle" width="4%">|</td>
<td align="left" valign="middle" width="4%">+-----</td>
<td align="left" valign="middle" width="80%">day of week (0 - 6) (Sunday=0)</td>
</tr>
<tr>
<td align="left" valign="middle" width="4%">|</td>
<td align="left" valign="middle" width="4%">|</td>
<td align="left" valign="middle" width="4%">|</td>
<td align="left" valign="middle" width="4%">+</td>
<td align="left" valign="middle" width="4%">------- </td>
<td align="left" valign="middle" width="80%">month (1 - 12)</td>
</tr>
<tr>
<td align="left" valign="middle" width="4%">|</td>
<td align="left" valign="middle" width="4%">|</td>
<td align="left" valign="middle" width="4%">+</td>
<td align="left" valign="middle" width="4%">--</td>
<td align="left" valign="middle" width="4%">---------</td>
<td align="left" valign="middle" width="80%">day of month (1 - 31)</td>
</tr>
<tr>
<td align="left" valign="middle" width="4%">|</td>
<td align="left" valign="middle" width="4%">+</td>
<td align="left" valign="middle" width="4%">--</td>
<td align="left" valign="middle" width="4%">--</td>
<td align="left" valign="middle" width="4%">---------</td>
<td align="left" valign="middle" width="80%">hour (0 - 23)</td>
</tr>
<tr>
<td align="left" valign="middle" width="4%">+</td>
<td align="left" valign="middle" width="4%">--</td>
<td align="left" valign="middle" width="4%">--</td>
<td align="left" valign="middle" width="4%">--</td>
<td align="left" valign="middle" width="4%">---------</td>
<td align="left" valign="middle" width="80%">min (0 - 59)</td>
</tr>

</tbody>
</table>

<p><strong>Crontab Examples:-</strong></p>

 

<table style="font-size: 12px; font-family: arial;" width="100%" border="0" cellspacing="5" cellpadding="0">
<tbody>
<tr>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="56%">curl --silent --compressed <a href="{$siteUrl}/cron/dailymail/producttypekey/product/">{$siteUrl}/cron/dailymail/producttypekey/product/</a></td>
<td align="left" valign="middle" width="24%"> >Runs every minute</td>
</tr>
<tr>
<td align="left" valign="middle" width="4%">30</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="56%">curl --silent --compressed <a href="{$siteUrl}/cron/dailymail/producttypekey/product/">{$siteUrl}/cron/dailymail/producttypekey/product/</a></td>
<td align="left" valign="middle" width="24%"> >Runs at 30 minutes past the hour</td>
</tr>
<tr>
<td align="left" valign="middle" width="4%">45</td>
<td align="left" valign="middle" width="4%">6</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="56%">curl --silent --compressed <a href="{$siteUrl}/cron/dailymail/producttypekey/product/">{$siteUrl}/cron/dailymail/producttypekey/product/</a></td>
<td align="left" valign="middle" width="24%"> >Runs at 6:45 am every day</td>
</tr>
<tr>
<td align="left" valign="middle" width="4%">45</td>
<td align="left" valign="middle" width="4%">18</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="56%">curl --silent --compressed <a href="{$siteUrl}/cron/dailymail/producttypekey/product/">{$siteUrl}/cron/dailymail/producttypekey/product/</a></td>
<td align="left" valign="middle" width="24%"> >Runs at 6:45 pm every day</td>
</tr>
<tr>
<td align="left" valign="middle" width="4%">00</td>
<td align="left" valign="middle" width="4%">1</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">0</td>
<td align="left" valign="middle" width="56%">curl --silent --compressed <a href="{$siteUrl}/cron/dailymail/producttypekey/product/">{$siteUrl}/cron/dailymail/producttypekey/product/</a></td>
<td align="left" valign="middle" width="24%"> >Runs at 1:00 am every Sunday</td>
</tr>
<tr>
<td align="left" valign="middle" width="4%">00</td>
<td align="left" valign="middle" width="4%">1</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">7</td>
<td align="left" valign="middle" width="56%">curl --silent --compressed <a href="{$siteUrl}/cron/dailymail/producttypekey/product/">{$siteUrl}/cron/dailymail/producttypekey/product/</a></td>
<td align="left" valign="middle" width="24%"> >Runs at 1:00 am every Sunday</td>
</tr>
<tr>
<td align="left" valign="middle" width="4%">00</td>
<td align="left" valign="middle" width="4%">1</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">Sun</td>
<td align="left" valign="middle" width="56%">curl --silent --compressed <a href="{$siteUrl}/cron/dailymail/producttypekey/product/">{$siteUrl}/cron/dailymail/producttypekey/product/</a></td>
<td align="left" valign="middle" width="24%"> >Runs at 1:00 am every Sunday</td>
</tr><tr>
<td align="left" valign="middle" width="4%">30</td>
<td align="left" valign="middle" width="4%">8</td>
<td align="left" valign="middle" width="4%">1</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="56%">curl --silent --compressed <a href="{$siteUrl}/cron/dailymail/producttypekey/product/">{$siteUrl}/cron/dailymail/producttypekey/product/</a></td>
<td align="left" valign="middle" width="24%"> >Runs at 8:30 am on the first day of every month</td>
</tr>
</tbody>
</table>
                 </div>   
                 
  <h2>Steps to Set Cron Jobs in cPanel</h2>
  <p> <strong>Step 1:</strong>  Login to cPanel by using the link <a href="{$siteUrl}/cpanel">{$siteUrl}/cpanel</a></p>
  <p> <strong>Step 2:</strong>  Type <strong>cron</strong> in the search box of left column as in the screenshot</p>
                 <img src="{$view_images}/cron/cron_shot1.jpg" />
    <p> <strong>Step 3:</strong>  Add the cron job command <strong>curl --silent --compressed <a href="{$siteUrl}/cron/dailymail/producttypekey/product/">{$siteUrl}/cron/dailymail/producttypekey/product/</a></strong> in the text box next to the command to execute at your choice of time by selecting the appropriate value from the dropdown menus. Here at 12:AM 9Midnight)</p>              
                   <img src="{$view_images}/cron/cron_shot002.jpg" />
     <p> <strong>Step 4:</strong> Once you pasted the command and selected the appropriate time and day click the button <strong>"Add New Cron Job"</strong> it will add the scheduled job to the below Cron Jobs list.</p>              
                   <img src="{$view_images}/cron/cron_shot003.jpg" />  
    <p> <strong>Step 5:</strong> Add the second job <strong>curl --silent --compressed <a href="{$siteUrl}/cron/dailymail/producttypekey/now_product/">{$siteUrl}/cron/dailymail/producttypekey/now_product/</a></strong> to execute at 12:05 AM </p>              
                   <img src="{$view_images}/cron/cron_shot004.jpg" />                  
       <p> <strong>Step 6:</strong> Likewise add all the required cron jobs and it will be like below </p>              
                   <img src="{$view_images}/cron/cron_shot005.jpg" />                           
              <div>
    <p><strong>List of Cron Jobs :-</strong></p>  
    <table style="font-size: 12px; font-family: arial;" width="100%" border="0" cellspacing="5" cellpadding="0">
<tbody>
<tr>
<td align="left" valign="middle" width="4%">0</td>
<td align="left" valign="middle" width="4%">0</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="56%">curl --silent --compressed <a href="{$siteUrl}/cron/dailymail/producttypekey/product/">{$siteUrl}/cron/dailymail/producttypekey/product/</a></td>
<td align="left" valign="middle" width="24%">> this cron will run at 12:00 AM</td>
</tr>
<tr>
<td align="left" valign="middle" width="4%">5</td>
<td align="left" valign="middle" width="4%">0</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="56%">curl --silent --compressed <a href="{$siteUrl}/cron/dailymail/producttypekey/now_product/">{$siteUrl}/cron/dailymail/producttypekey/now_product/</a></td>
<td align="left" valign="middle" width="24%">> this cron will run at 12:05 AM</td>
</tr>
<tr>
<td align="left" valign="middle" width="4%">10</td>
<td align="left" valign="middle" width="4%">0</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="56%">curl --silent --compressed <a href="{$siteUrl}/cron/dailymail/producttypekey/product_product/">{$siteUrl}/cron/dailymail/producttypekey/product_product/</a></td>
<td align="left" valign="middle" width="24%">> this cron will run at 12:10 AM</td>
</tr>

<tr>
<td align="left" valign="middle" width="4%">15</td>
<td align="left" valign="middle" width="4%">0</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="56%">curl --silent --compressed <a href="{$siteUrl}/cron/dailymail/producttypekey/getaway_product/">{$siteUrl}/cron/dailymail/producttypekey/getaway_product/</a> </td>
<td align="left" valign="middle" width="24%">> this cron will run at 12:15 AM</td>
</tr>

<tr>
<td align="left" valign="middle" width="4%">20</td>
<td align="left" valign="middle" width="4%">0</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="56%">curl --silent --compressed <a href="{$siteUrl}/cron/businessproductmail/">{$siteUrl}/cron/businessproductmail/</a></td>
<td align="left" valign="middle" width="24%">> this cron will run at 12:20 AM</td>
</tr>
<tr>
<td align="left" valign="middle" width="4%">25</td>
<td align="left" valign="middle" width="4%">0</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="56%">curl --silent --compressed <a href="{$siteUrl}/cron/Productcertificate">{$siteUrl}/cron/Productcertificate</a>/   </td>
<td align="left" valign="middle" width="24%">> this cron will run at 12:25 AM</td>
</tr>
<tr>
<td align="left" valign="middle" width="4%">30</td>
<td align="left" valign="middle" width="4%">0</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="4%">*</td>
<td align="left" valign="middle" width="56%">curl --silent --compressed <a href="{$siteUrl}/cron/cancelproducts/">{$siteUrl}/cron/cancelproducts/</a> </td>
<td align="left" valign="middle" width="24%">> this cron will run at 12:30 AM</td>
</tr>
</tbody>
</table>        
              </div>       
        <!--End:Example-->
      </div>
  <!--End: left Block-->
  <div class="clear"></div>
  </div>
</div>
<!--***********************************************************************END CONTAINER SECTION******************************************************-->
<!--End:Content Container-->
 <!--End:Content Container-->
  {include file='CommonBottom.tpl'} 
</div>
<!--End:Outer Container-->
</body>
</html>
