BlogScript Programming Assignment Help

March 30, 2022by Dennis kimotho0

Hits: 0

Script Programming Assignment

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: Script Programming Assignment Help

Script Programming Assignment Help

  • 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  Script Programming Assignment Help
following APA format guidelines:
  1. Set page margins to 1 inch on all sides.
  2. Double-space all text, including headings.
  3. Indent the first line of every paragraph 0.5 inches.
  4. Use an accessible font (e.g., Times New Roman 12pt., Arial 11pt., or Georgia 11pt.).

For Script Programming Assignment Help please click here

Leave a Reply

Your email address will not be published. Required fields are marked *