NOTE: This is a little different than what is described

NOTE:  This is a little different than what is described in video.  

Create one script that does two things.  It creates a backup of your directory or performs a security check to be sure the files have not been changed without you knowing. 

Your script must do the following:

1) If the user indicates option 1 on the command line, it performs a backup of your home directory structure.

2) If the user indicates option 2 on the command line,  to does a security check. The script checks if any files in a directory have changed (use sha1sum and diff).  You will need to create a temporary file to hold the new data so you can compare the two. You code should also do the following:

  • Create a maintenance log of who (username) and when (date) the hash checks were completed.  Store the date and name in a file called maintenance.  If the file already exists the code should append to the end.
  • Make sure you check to be sure if you can read the file and you can write to it before doing it. If you can’t print out an error.  
  • The script should print out the name of the file(s) that changed and its old and new hash. 
  • Prove that your code works: 
    • Show maintenance log
    • Show all conditions including error conditions working 

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

This Week’s Topics Case Studies 1 & 2 Suggested Reading

  This Week’s Topics Suggested Reading Material Jarvis, C. (2016). Physical examination & health assessment. Seventh edition. St. Louis, Mo.: Elsevier Mosby’s manual of diagnostic and laboratory tests (6th ed) CSLO’s Apply knowledge to differentiate subjective and objective information to construct an accurate and thorough past medical history (PMH). history

For this project, select an organization that has leveraged Cloud

   For this project, select an organization that has leveraged Cloud Computing technologies in an attempt to improve profitability or to give them a competitive advantage.  Research the organization to understand the challenges that they faced and how they intended to use Cloud Computing to overcome their challenges.  The paper

Discussion Question: Telehealth technology has extended the arms of traditional

  Discussion Question: Telehealth  technology has extended the arms of traditional health care delivery  into homes, clinics, and other environments outside the bricks and  mortar of hospitals. Will the increased use of these telehealth  technology tools be viewed as “de-humanizing” patient care or will they  be viewed as a means

Milestone 1 (intro) was completed but we should concentrate on

Milestone 1 (intro) was completed but we should concentrate on industry not as separate organization but i did for company Walmart so make sure you consider retail industry and do the second milestone. i have attached question scenario and first milestone here.. This is the second milestone of the portfolio

Prepare a 1,050- to 1,400-word paper describing a negotiation in

  Prepare a 1,050- to 1,400-word paper describing a negotiation in which you have participated (e.g., sale or purchase of a house, car, salary, etc.). Analyze two of the following three roles (communication, personality, or relationships) and how they contributed to—or detracted from—your described negotiation situation. Analyze how benefits, costs, and risks impacted

You will be writing and presenting a two-minute informative speech

  Submit as a Word document in paragraph form, just like you would be speaking to the group . Use the Template to help set up the paper. Be sure to include an Introduction, a Body and a Conclusion section in the paragraph following the Template. Record yourself doing the

Based on literature, discuss the process of Advanced Practice Nurse

   Based on literature, discuss the process of Advanced Practice Nurse (APN) business planning from a system approach. Submission Instructions  to be 3 pages in length, excluding the title, abstract and references page. Needs to nclude an abstract. APA 7 EDITION, please  a minimum of 4 current (published from 2017

Research a DMO or CVB in the U.S. Discuss what you learned about the

Please research a DMO or CVB in the U.S. Discuss what you learned about the organization via their website. Your discussion should include, but not be limited to: Visitor attractions, how they assist meeting planners, what you learned about the RFP process, what activities they participate in (i.e. site inspections,

Word 2019 In Practice – Ch 1 Independent Project 1-4

  Word 2019 In Practice – Ch 1 Independent Project 1-4 Word 2019 In Practice – Ch 4 Independent Project 4-4  Word 2019 In Practice – Ch 3 Independent Project 3-5  Excel 2019 In Practice – Ch 1 Independent Project 1-4  Excel 2019 In Practice – Ch 2 Independent Project

In preparation for this discussion forum, make a list of

Write: For this discussion, you will address the following prompts: Identify the global societal issue you have chosen to research for your last paper , an argumentative paper, and explain why further research on this topic is important. Provide a clear and concise thesis statement that includes a solution to the

A case study analysis requires you to investigate a leadership

A case study analysis requires you to investigate a leadership problem, examine the alternative solutions, and propose the most effective solution based on the evidence in the case. Use only information provided in the case study. Do not do additional research on the case itself.  INTRODUCTION: Identify the key issues

Analysis of “In the Skin of a Lion” novel by Michael Ondaatje

Please read the novel by Michael Ondaatje: In the Skin of a Lion,and answer the following question. Kwasi Hoffman and Jodi Lundgren argue that Ondaatje’s novel focuses on European migrants so as to demonstrate to the reader the exploitation and degradation they encountered despite their white skin and European ancestry.

Explain the rationale of the Ohio Supreme Court in allowing

Explain the rationale of the Ohio Supreme Court in allowing disciplinary records to be released, focusing on the majority opinion. Then explain the rationale of the US Circuit Court (“US Court of Appeals” in the text) in disallowing the release of disciplinary records. You may also reference the dissent in

1. Assume that you are running an outdoor ethnic food

1. Assume that you are running an outdoor ethnic food festival for the elderly. What fire precautions might you need to take? What are some of the poison issues that you might consider? How would you organize your EMR team? 2. Assume that you have been hired as the risk

Describe Kübler-Ross’s theory of dying. Evaluate the usefulness of her

Describe Kübler-Ross’s theory of dying. Evaluate the usefulness of her theory.  Kübler-Ross’s theory of dying consists of five steps: Denial, anger, bargaining, depression, and acceptance when patients learn they are terminally ill. Denial is when the patient is in rejection about the diagnosis, the patient is in disbelief they are

Your Personal Philosophy Imagine you are new Chief Diversity Officer

  Your Personal Philosophy Imagine you are new Chief Diversity Officer and you want to communicate your philosophy on diversity and inclusion and capitalizing on differences in the workplace. In 2-3 pgs, articulate and provide the rationale and support (i.e., references) for your philosophy.  But, remember this is aimed at

150 words Thinking of inputs and outputs at each level,

150 words   Thinking of inputs and outputs at each level, how is the operations plan linked to the MPS? How is the MPS linked to the MRP? What levels/items are planned at each stage of this planning hierarchy?  Why is it important for a company to measure supply chain