{"id":817,"date":"2017-07-12T09:55:32","date_gmt":"2017-07-12T09:55:32","guid":{"rendered":"https:\/\/newdelhihosting.co.in\/blog\/?p=817"},"modified":"2024-10-22T10:43:46","modified_gmt":"2024-10-22T10:43:46","slug":"how-to-setup-a-cron-job-on-webmin","status":"publish","type":"post","link":"https:\/\/www.newdelhihosting.co.in\/blog\/how-to-setup-a-cron-job-on-webmin\/","title":{"rendered":"How to Setup a Cron Job on Webmin?"},"content":{"rendered":"<p><strong>CRON JOB<\/strong><\/p>\n<p>Cron job is the best way to automate various daily, weekly or even monthly tasks.In this tutorial, we will learn how to set up a cronjob on a server which runs Webmin.<\/p>\n<p><strong>Accessing Cron Job Configuration Section in <a href=\"https:\/\/newdelhihosting.co.in\/blog\/webminvirtualmin-installation\/\">Webmin<\/a><\/strong><\/p>\n<p><strong>Step1<\/strong>: Login to your webmin admin panel.You can use by typing https:\/\/your-vps-ip-address:10000<\/p>\n<p><strong>Step2<\/strong>:Choose Webmin between two options at the top of the sidebar.<\/p>\n<pre><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-821\" src=\"https:\/\/newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin2.png\" alt=\"\" width=\"260\" height=\"186\" srcset=\"https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin2.png 260w, https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin2-250x179.png 250w\" sizes=\"(max-width: 260px) 100vw, 260px\" \/><\/pre>\n<p><strong>Step3<\/strong>:Click System tab in the left sidebar of webmin and navigate to <strong>scheduled cron jobs<\/strong>.<\/p>\n<pre><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-822\" src=\"https:\/\/newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin1.png\" alt=\"\" width=\"258\" height=\"398\" srcset=\"https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin1.png 258w, https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin1-194x300.png 194w, https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin1-162x250.png 162w\" sizes=\"(max-width: 258px) 100vw, 258px\" \/><\/pre>\n<p><strong>Step4<\/strong>: Now see a window with all of your scheduled cron jobs.<\/p>\n<pre><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-823\" src=\"https:\/\/newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin3.png\" alt=\"\" width=\"745\" height=\"566\" srcset=\"https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin3.png 745w, https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin3-300x228.png 300w, https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin3-250x190.png 250w\" sizes=\"(max-width: 745px) 100vw, 745px\" \/><\/pre>\n<p><strong>Creating a new cron job<\/strong><br \/>\n<strong>Step1<\/strong>:Click create a new scheduled cron job in the top of the cron job list.<br \/>\n<strong>Step2<\/strong>:The next page nedd to configure cron job.The section is <strong>Job Details<\/strong><br \/>\n<strong>Execute cron jobs<\/strong><\/p>\n<p>You must select which unix user to execute the cron job.By click button on the right side,will get full list of all available users on the server.<br \/>\n<strong>Active?<\/strong><\/p>\n<p>You can select whether Cron job is active or not.<br \/>\n<strong>Command<\/strong><\/p>\n<p>You will need to write command you want to run periodically.<br \/>\n<strong>input to command<\/strong><\/p>\n<p>This field is optional.It will be fed to the command as input when cron job is executed.<br \/>\n<strong>Description<\/strong><\/p>\n<p>Own cron job description (it is not required) for self reference.<\/p>\n<pre><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-825\" src=\"https:\/\/newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin5.png\" alt=\"\" width=\"706\" height=\"285\" srcset=\"https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin5.png 706w, https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin5-300x121.png 300w, https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin5-250x101.png 250w\" sizes=\"(max-width: 706px) 100vw, 706px\" \/><\/pre>\n<p><strong>Step3<\/strong>:Next section is When to execute.Here you will be able to select when your cron job shoule be executed.There are two options.<br \/>\nSimpleSchedule-Select already defined interval from the drop down list.<\/p>\n<pre><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-826\" src=\"https:\/\/newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin6.png\" alt=\"\" width=\"615\" height=\"381\" srcset=\"https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin6.png 615w, https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin6-300x186.png 300w, https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin6-250x155.png 250w\" sizes=\"(max-width: 615px) 100vw, 615px\" \/><\/pre>\n<p>Times and dates selected below-If you choose this option,you will have to configure the cronjob execution times by selecting minutes,hours,days and etc.<\/p>\n<pre><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-827\" src=\"https:\/\/newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin9.png\" alt=\"\" width=\"623\" height=\"522\" srcset=\"https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin9.png 623w, https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin9-300x251.png 300w, https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin9-250x209.png 250w\" sizes=\"(max-width: 623px) 100vw, 623px\" \/><\/pre>\n<p><strong>Step4<\/strong>:The final section is Date Range to Execute.Here you can set date interval if you only need your cron job to run for a week.two weeks or any other time period.<\/p>\n<pre><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-828\" src=\"https:\/\/newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin8.png\" alt=\"\" width=\"723\" height=\"94\" srcset=\"https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin8.png 723w, https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin8-300x39.png 300w, https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin8-250x33.png 250w\" sizes=\"(max-width: 723px) 100vw, 723px\" \/><\/pre>\n<p><strong>Step5<\/strong>:When you have everything configured as you want,to the bottom of the page and click <strong>Create.<\/strong><\/p>\n<pre><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-830\" src=\"https:\/\/newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin9-1.png\" alt=\"\" width=\"623\" height=\"522\" srcset=\"https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin9-1.png 623w, https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin9-1-300x251.png 300w, https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin9-1-250x209.png 250w\" sizes=\"(max-width: 623px) 100vw, 623px\" \/><\/pre>\n<p><strong>Step6<\/strong>:If the cron job was setup successfully,you will see it in the list of cron jobs.<\/p>\n<pre><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-833\" src=\"https:\/\/newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin10.png\" alt=\"\" width=\"736\" height=\"118\" srcset=\"https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin10.png 736w, https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin10-300x48.png 300w, https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/cron-jobs-webmin10-250x40.png 250w\" sizes=\"(max-width: 736px) 100vw, 736px\" \/><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>CRON JOB Cron job is the best way to automate various daily, weekly or even monthly tasks.In this tutorial, we will learn how to set up a cronjob on a server which runs Webmin. Accessing Cron Job Configuration Section in Webmin Step1: Login to your webmin admin panel.You can use by typing https:\/\/your-vps-ip-address:10000 Step2:Choose Webmin&#8230;<\/p>\n","protected":false},"author":1,"featured_media":836,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[16],"tags":[],"class_list":["post-817","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web"],"jetpack_featured_media_url":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/fe-crontab.png","_links":{"self":[{"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/posts\/817"}],"collection":[{"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/comments?post=817"}],"version-history":[{"count":8,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/posts\/817\/revisions"}],"predecessor-version":[{"id":835,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/posts\/817\/revisions\/835"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/media\/836"}],"wp:attachment":[{"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/media?parent=817"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/categories?post=817"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/tags?post=817"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}