Shell Programming

Primary Task Response: Within the Discussion Board area, you’ll attach a Word document that respond to the following questions and a paragraph describing your thoughts, ideas, and comments on the exercise. This will be the foundation for future discussions with your classmates. Be substantive and clear, and use examples to reinforce your ideas.

Library Research Assignment

Don't use plagiarized sources. Get Your Custom Essay on
Shell Programming
Just from $13/Page
Order Essay

You have created the directory structure and some base files to be used by the Web server and Web site. For the Web site to be created in a production environment, you need to package your commands in a script so that the patching team can run them on the production environment. Your task for this assignment is the following:

Create a Bourne shell script. The script should do the following:

Explain what the script will do and who is the author in a comment area.
cd to your home directory
Show your current working directory.
List the contents of the current directory.
Create the directory structure and create the files as defined in the previous Individual Project.
For each directory and file, test to see if the file or directory already exists; if it does exist, do not recreate; if it is missing, create it.
In the end, generate a directory listing showing the structure and content of the new directories.
At the beginning of the script, set a variable called INSTALL_DIRECTORY that will contain the location of the directory into which the Web server will be installed. At the end of the script, display the contents of this variable along with a message to the installer about the location in which the directories were created.
A small hint for creating the content of the httpd.conf file: use the echo command in your script. The script is not interactive and should create all objects automatically. Also, the ServerRoot and DocumentRoot should contain correct values based on your directory names.

If you need to test that directories are created or not based on them already existing, remove files and directories ahead of time to ensure you know the exact state of your environment.

Finally, save your script in a Word document as “yourname_DB5.docx”.

Your primary post should include the following:

A paragraph discuss your experience with the exercise
Attach your Word document as “yourname_DB5.docx” to your Discussion Board primary response
Here are some tips if you have problems to submit your Word document:

Make sure there are some texts (not only the screenshots) in the Word document.
Try to save as Word 97-2003 Document (*.doc) and re-submit.
Try to submit with a different Web browser.
Try to submit from a different computer.

Responses to Other Students: Respond to at least 2 of your fellow classmates with a reply of 2 paragraphs about their Primary Task Response regarding items you found to be compelling and enlightening. To help you with your discussion, please consider the following questions:

What did you learn from your classmate’s posting?
What additional questions do you have after reading the posting?

Homework Writing Bay
Calculator

Calculate the price of your paper

Total price:$26
Our features

We've got everything to become your favourite writing service

Need a better grade?
We've got you covered.

Order your paper