31 Mar NOTE:? This is a little different than what is described in video.?? Create one script that does two things.? It creates a bac
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
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteEdu. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.
Do you need help with this question?
Get assignment help from WriteEdu.com Paper Writing Website and forget about your problems.
WriteEdu provides custom & cheap essay writing 100% original, plagiarism free essays, assignments & dissertations.
With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Chat with us today! We are always waiting to answer all your questions.