[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"/en/kb/manual/crontabKbData":3},{"page":4,"pages":74,"recommendedPages":75,"category":41,"categoryTree":41,"total":81,"currentOrder":104,"activeManualCategoryId":41,"tag":-1},{"route":5,"uuid":8,"title":9,"excerpt":10,"content":11,"view_count":12,"published_at":13,"modified_at":13,"like":14,"category":17,"hero_image":34,"seo_metadata":35,"schema_org_metadata":39,"open_graph_metadata":42,"sections":43,"tags":61,"breadcrumbs":62,"images":65},{"language":6,"path":7},"en","/kb/manual/crontab","51ba4bf0-fe44-5233-0120-dbcab6583f64","CronTab","The section CronTab (tasks on schedule) serves for adjustment of command performance on schedule and at set times. With CronTab you can set a concrete time and the command will be performed at this exact time.","\u003Cdiv class=\"wp-block-beget-image image-block\">\u003Cimg src=\"https://cp.beget.com/shared/Lb1qgii96idK1Sa0SX3VXWneXNYM7bPo/cron_1.png.webp\" alt=\"crontab\">\u003C/div>\n\u003Cp>The section \u003Ca rel=\"noreferrer noopener\" href=\"https://cp.beget.com/crontab\" target=\"_blank\">CronTab\u003C/a> (tasks on schedule) serves for adjustment of command performance on schedule and at set times. With \u003Cstrong>CronTab\u003C/strong> you can set a concrete time and the command will be performed at this exact time. The \u003Cstrong>CronTab\u003C/strong> can be configured in such a way that the task will be performed once \u003Cem>a\u003C/em> \u003Cem>month\u003C/em>, \u003Cem>a day\u003C/em>, \u003Cem>an hour\u003C/em>, \u003Cem>every minute\u003C/em> or for instance \u003Cem>every 10 minutes\u003C/em>. Also you can combine the settings. For instance if you want the command to be performed once an hour within the first 2 hours, but not to be performed at all within the following 2 hours.\u003C/p>\n\u003Ch2 id=\"task-wizard\">Task wizard\u003C/h2>\n\u003Cp>Let's begin our acquaintance with \u003Cstrong>Cron\u003C/strong> by opening the \u003Cstrong>Task wizard\u003C/strong>. With the help of the wizard the script performance time can be adjusted without any serious administration knowledge, simply by selecting certain combinations from drop down lists. You also need to indicate the script path or the command that shall be performed in \u003Cstrong>Cron\u003C/strong>.\u003C/p>\n\u003Cp>Let's review an example of running a script, written in \u003Cem>PERL\u003C/em> language, that shall be run \u003Cem>every 5 minutes\u003C/em>.\u003C/p>\n\u003Cdiv class=\"wp-block-beget-image image-block\">\u003Cimg src=\"https://cp.beget.com/shared/UXv11Mj3EXGzMo2a5sS7qhxIO5pgzUfJ/cron_2.png.webp\" alt=\"setup crontap\">\u003C/div>\n\u003Cp>Upon pressing the button \u003Cimg src=\"https://cp.beget.com/shared/o3aF6brGbCFeXpRudm9Q65YIf_M8omNQ/cron_3.png.webp\" class=\"wp-inline-image\">, a new record with your first configuration will appear beneath the main \u003Cstrong>Cron\u003C/strong> window. The number of these records is not limited.\u003C/p>\n\u003Cdiv class=\"wp-block-beget-image image-block\">\u003Cimg src=\"https://cp.beget.com/shared/KZxsajlwpbfascj6j3j1zbnyPzCnLZed/cron_4.png.webp\" alt=\"crontab days\">\u003C/div>\n\u003Cp>Now we have the first task that we can \u003Cstrong>activate/deactivate\u003C/strong>, \u003Cstrong>edit\u003C/strong> or \u003Cstrong>delete\u003C/strong> with help of the buttons on the right of each task.\u003C/p>\n\u003Cp>\u003Cimg src=\"https://cp.beget.com/shared/BMx4DH-M2veYmsaKCkbcX-VpYC-Q_fKF/switch.png.webp\" class=\"wp-inline-image\">  -  activate/deactivate task;\u003Cbr>\u003Cimg src=\"https://cp.beget.com/shared/QrztBgC2BsGmWFkm6NDdkCD-cqF9TpFc/edit.png.webp\" class=\"wp-inline-image\">  -  edit task;\u003Cbr>\u003Cimg src=\"https://cp.beget.com/shared/WojZNX64Nf3gmyxlo4w90rulPVig9hsu/del.png.webp\" class=\"wp-inline-image\">  -  delete task.\u003C/p>\n\u003Ch2 id=\"manual-crontab-setup\">Manual CronTab setup.\u003C/h2>\n\u003Cp>This section also contains a manual setup option allowing to adjust the script performance time in a way well known to those familiar with \u003Cstrong>Cron\u003C/strong>.\u003C/p>\n\u003Cdiv class=\"wp-block-beget-image image-block\">\u003Cimg src=\"https://cp.beget.com/shared/4GRF2aBuV7Oz-8JzPbYpL7fBhcr3oB3H/cron_5.png.webp\" alt=\"command crontab\">\u003C/div>\n\u003Ch3 id=\"time-interval\">Time, interval\u003C/h3>\n\u003Cp>Minutes can range from \u003Cstrong>0\u003C/strong> to \u003Cstrong>59\u003C/strong>\u003Cbr>Hours can range from \u003Cstrong>0\u003C/strong> to \u003Cstrong>23\u003C/strong>\u003Cbr>The day of a month can range from \u003Cstrong>1\u003C/strong> to \u003Cstrong>31\u003C/strong>\u003Cbr>A month can range from \u003Cstrong>1\u003C/strong> to \u003Cstrong>12\u003C/strong>\u003Cbr>A weekday can range from \u003Cstrong>0\u003C/strong> to \u003Cstrong>7\u003C/strong>, where 0 and 7 equals Sunday\u003C/p>\n\u003Cp>Configuration of \u003Cstrong>CronTab\u003C/strong> for task completion is not only available at a certain time, but \u003Cem>every minute\u003C/em>, \u003Cem>hourly\u003C/em>, \u003Cem>daily\u003C/em>, \u003Cem>weekly\u003C/em> and \u003Cem>monthly\u003C/em>, using the combination\u003Cstrong> */x\u003C/strong>.\u003C/p>\n\u003Ch3 id=\"examples\">Examples\u003C/h3>\n\u003Cp>*/5 * * * * - perform command every five minutes\u003Cbr>0 */3 * * * - perform every three hours\u003Cbr>0 12-16 * * * - perform command once an hour from 12 to 16 (12, 13, 14, 15, 16)\u003Cbr>0 12,16,18 * * * - perform command once an hour at 12, 16 and 18\u003C/p>\n\u003Cp>*/1 * * * * /usr/bin/php ~/site.ru/public_html/test.php - perform php-script test.php minute-by-minute\u003Cbr>0 */1 * * * /usr/bin/perl ~/site.ru/public_html/test.pl - hourly activation of perl-script test.pl\u003C/p>\n\u003Ch3 id=\"command\">Command\u003C/h3>\n\u003Cp>A path from the home directory to the script needs to be created\u003Cbr>For example: public_html/cgi-bin/script.pl\u003Cbr>The system will insert the character \u003Cstrong>~/\u003C/strong> automatically (this combination replaces the full path).\u003Cbr>We will receive: ~/public_html/cgi-bin/script.pl\u003Cbr>If the character\u003Cstrong> &amp;\u003C/strong> (ampersand) is inserted at the end of the path, the script will work in background mode.\u003Cbr>Setting this character is not obligatory.\u003C/p>\n\u003Cdiv class=\"wp-block-beget-alert alert-block alert-block-warning\">\n\u003Cdiv class=\"alert-block-title\">Pay attention\u003C/div>\n\u003Cdiv class=\"alert-block-content\">In some cases that need you to choose PHP version, you should use /usr/local/bin/php\u003Cstrong>X.X\u003C/strong> or /usr/local/php-cgi/\u003Cstrong>X.X\u003C/strong>/bin/php-script (replace\u003Cstrong> X.X \u003C/strong>for PHP version you need to use: \u003Cstrong>7.0\u003C/strong>, \u003Cstrong>7.1\u003C/strong>, etc). The PHP version selecting option in Control panel \u003Cstrong>does not affect \u003C/strong>on PHP running from Crontab.\u003Cbr>PHP directives should be specifed separately with a \u003Cstrong>-d\u003C/strong> flag for each directive: \u003Cbr>/usr/local/bin/php5.6 -d display_errors=1 script.php\u003C/div>\n\u003C/div>\n",76,"2026-11-11T14:50:31.000Z",{"count":15,"liked":16},148,false,{"route":18,"title":20,"tags":21,"breadcrumbs":27,"uuid":28,"parent_uuid":29,"default_page_path":26,"seo_metadata":30},{"language":6,"path":19},"/kb/manual","Control Panel User's Manual",[22],{"id":23,"title":24,"seo_metadata":25},"vps","VPS",{"title":26,"description":26,"header":26,"keywords":26},"",[],"5afe272b-ca8e-731e-0871-c5b169760081","80213437-0399-4b4f-2333-426bb5050534",{"title":31,"description":32,"header":31,"keywords":33},"Beget Hosting Panel Guide","Руководство по панели управления Beget. Инструкции по работе с аккаунтом, файловыми менеджерами, почтой, CMS и др.","hosting panel instructions, hosting beget",{"src":26,"text":26},{"title":36,"description":37,"keywords":38},"CronTab what is it? How to set it up? | Hosting Beget","We tell you what the CronTab section (scheduled jobs) is for and how to set it up on your hosting in Beget","CronTab  settings, CronTab server",{"faq":40,"how_to":41,"product":41},[],null,{},[44,48,51,55,58],{"level":45,"name":46,"anchor":47},1,"Task wizard","task-wizard",{"level":45,"name":49,"anchor":50},"Manual CronTab setup.","manual-crontab-setup",{"level":52,"name":53,"anchor":54},2,"Time, interval","time-interval",{"level":52,"name":56,"anchor":57},"Examples","examples",{"level":52,"name":59,"anchor":60},"Command","command",[],[63],{"route":64,"title":20},{"language":6,"path":19},[66,68,70,72],{"src":67},"https://cp.beget.com/shared/Lb1qgii96idK1Sa0SX3VXWneXNYM7bPo/cron_1.png.webp",{"src":69},"https://cp.beget.com/shared/UXv11Mj3EXGzMo2a5sS7qhxIO5pgzUfJ/cron_2.png.webp",{"src":71},"https://cp.beget.com/shared/KZxsajlwpbfascj6j3j1zbnyPzCnLZed/cron_4.png.webp",{"src":73},"https://cp.beget.com/shared/4GRF2aBuV7Oz-8JzPbYpL7fBhcr3oB3H/cron_5.png.webp",[],[76,86,95],{"route":77,"uuid":79,"title":80,"excerpt":26,"content":26,"view_count":81,"published_at":26,"modified_at":26,"like":41,"category":41,"hero_image":41,"seo_metadata":41,"schema_org_metadata":41,"open_graph_metadata":41,"sections":82,"tags":83,"breadcrumbs":84,"images":85},{"language":6,"path":78},"/kb/manual/statistics","8a4466c6-ee4c-ad6f-7af5-b48e2a51b0fb","Statistics",0,[],[],[],[],{"route":87,"uuid":89,"title":90,"excerpt":26,"content":26,"view_count":81,"published_at":26,"modified_at":26,"like":41,"category":41,"hero_image":41,"seo_metadata":41,"schema_org_metadata":41,"open_graph_metadata":41,"sections":91,"tags":92,"breadcrumbs":93,"images":94},{"language":6,"path":88},"/kb/manual/cluster-management-kubernetes","741dc849-a7fe-f150-c578-c8542b32aa84","Managed Kubernetes Cluster Management",[],[],[],[],{"route":96,"uuid":98,"title":99,"excerpt":26,"content":26,"view_count":81,"published_at":26,"modified_at":26,"like":41,"category":41,"hero_image":41,"seo_metadata":41,"schema_org_metadata":41,"open_graph_metadata":41,"sections":100,"tags":101,"breadcrumbs":102,"images":103},{"language":6,"path":97},"/kb/manual/ftp","b97c3b6e-0c0d-4d0b-dff2-1de38d0b2a61","FTP",[],[],[],[],"popularity-desc"]