{"id":30870,"date":"2022-07-24T15:28:03","date_gmt":"2022-07-24T15:28:03","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=30870"},"modified":"2022-12-23T05:48:00","modified_gmt":"2022-12-23T05:48:00","slug":"python-assignment-project-for-devops-engineers","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/python-assignment-project-for-devops-engineers\/","title":{"rendered":"Python Assignment &#038; Project for DevOps Engineers"},"content":{"rendered":"\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>How to Submit Assingment<\/strong> &#8211; Please post the code into github or gist and share a links of the program in the chat windows. We would be notified with your email id, the moment you publish a comments.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Python Assignment &amp; Project #1<\/h2>\n\n\n\n<p>Write a python program which should following<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Prompt Input from user one Location of Linux filesystem and list each files of the directory.<\/li><li>file name must be listed with row and serical num ie. 1.2.3.4.5 along with size | owner | last modified date.<\/li><li>User must be promoted with a options to delete files by choosing serical num ie. 1.2.3.4.5<\/li><li>User must be promoted every time with 2 options. 1. Exit the interactive session 2. Continue with file delete ops.<\/li><\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python Assignment &amp; Project #2<\/h2>\n\n\n\n<p>Write a python program which should following<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Take one filesystem of Windows or Linux and the filesystem must be having few log files.<\/li><li>Write a python script to check if a files which has been modified in last 24 hours<\/li><li>Only files which has been modified in last 24 hours, must to rotated &amp; rename with filename-date-year format.<\/li><li>Before renaming, need to check if it has been rotated for the day already.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Python Assignment &amp; Project 3<\/h2>\n\n\n\n<p>Write a python program which should following<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Install Apache and Tomcat and run it. Get some errors in Apache and Tomcat log files for next code.<\/li><li>Write a python code which would read all apache and tomcat log and parse only full lines which has &#8220;Error&#8221; or &#8220;error&#8221; or &#8220;ERROR&#8221;.<\/li><li>And Send all the lines which contains error to one file.<\/li><li>One email must be sent to ADMIN containing a Last 20 lines of the file in BODY and full file must be attached in the email.<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>How to Submit Assingment &#8211; Please post the code into github or gist and share a links of the program in the chat windows. We would be notified with your&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[2],"tags":[],"class_list":["post-30870","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/30870","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=30870"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/30870\/revisions"}],"predecessor-version":[{"id":30871,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/30870\/revisions\/30871"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=30870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=30870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=30870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}