{"id":79,"date":"2011-12-09T05:00:32","date_gmt":"2011-12-09T05:00:32","guid":{"rendered":"http:\/\/rat32.com\/rat32\/?p=79"},"modified":"2013-10-11T03:41:51","modified_gmt":"2013-10-11T03:41:51","slug":"easiest-and-quickest-way-tutorial-to-learn-cronjob-in-ubuntu","status":"publish","type":"post","link":"https:\/\/rat32.com\/rat32\/2011\/12\/09\/easiest-and-quickest-way-tutorial-to-learn-cronjob-in-ubuntu\/","title":{"rendered":"Easiest and Quickest way \/ tutorial to learn cronjob in ubuntu"},"content":{"rendered":"<p>Cron is a system daemon used to execute desired tasks (in the background) at designated times. I am demonstrating most simple form of cronjob in ubuntu.<\/p>\n<ol>\n<li>Open terminal and enter the following command:<b>crontab -e<\/b><\/li>\n<li>Enter following line of code: <b>34 09 * * * env DISPLAY=:0 gedit<\/b><\/li>\n<li>Save this settings<\/b><\/li>\n<\/ol>\n<p><strong>Description:<\/strong> Here 34 represents minute, 09 represents hour and *,* and * are for every day, month and weekdays and * represents always. This will open text editor on 9 am and 34 minutes everyday, every month and every weekdays. Change 34 and 09 to your nearest upcomming time. For eg if your current time is 10:20 AM then change 34 to 24. So that you can see result within few minutes. So your modified command will look like this  <strong>24 10 * * * env DISPLAY=:0 gedit<\/strong>.  Command <strong>env DISPLAY=:0<\/strong> is for displaying gui programs like gedit. You can replace gedit with skype or any programs you like.<strong> crontab -e<\/strong> command is for editing the existing cron jobs. To check your existing cron job hit <strong> crontab -l<\/strong> in the terminal.<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>cronjob, ubuntu, easiest, tutorial<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[],"class_list":["post-79","post","type-post","status-publish","format-standard","hentry","category-ubuntu-2"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/posts\/79"}],"collection":[{"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/comments?post=79"}],"version-history":[{"count":5,"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/posts\/79\/revisions"}],"predecessor-version":[{"id":109,"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/posts\/79\/revisions\/109"}],"wp:attachment":[{"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/media?parent=79"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/categories?post=79"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/tags?post=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}