Create files as defined in the previous individual project

Assignment Help Basic Computer Science
Reference no: EM131221141

Create a Bourne shell script

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:

1. Explain what the script will do and who is the author in a comment area.
2. cd to your home directory
3. Show your current working directory.
4. List the contents of the current directory.
5. Create the directory structure and create the files as defined in the previous Individual Project.
6. 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.
7. In the end, generate a directory listing showing the structure and content of the new directories.
8. 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.

Reference no: EM131221141

Questions Cloud

Develop and maintain human resources : Human Resources information is usually found in the Human Resources and Corporate Governance sections of the website as well as by reviewing the Annual Report (Investor Relations section). You may also need to use a search engine such as Google or..
How do criminologists define white collar crime : How did E.A. Ross describe an individual who committed a white collar crime? Discuss Edwin H. Sutherland's 1940's study of white collar crime. How do criminologists define white collar crime?
Explain how sharks ltd costs should be accounted : Explain how Sharks Ltd's costs (costs of direct mailings, purchased customer list and marketing costs) should be accounted for under AASB 138/IAS 38 Intangible Assets, giving reasons for your answers
Applications of percentage : Salary of A is 75% of B’s salary. Salary of A is increased by 40% but salary of B is increased by only 10%. Whose salary is more and by what percent? The price of a commodity increases by 55% and therefore a house wife reduces the quantity purchased ..
Create files as defined in the previous individual project : List the contents of the current directory. Create the directory structure and create the files as defined in the previous Individual Project.
Challenges faced my expatriates in nigeria : Investigating the Cross-cultural Challenges of Expatriates in Multinational Oil Companies in Nigeria, while my research topic is " Challenges faced my expatriates in Nigeria"
Critical success factors for a project manager : What are the critical success factors for a Project Manager? What skills should managers look for when hiring someone who would be successful in this job?
List computers operating system version of operating system : Submit the file and written response according to the submission instructions. List the computer's operating system, version of operating system, processor, and total memory (RAM) installed.
How do they use their literary standpoints to affect us : Compare the motives for killing for Grenouille and Frankenstein's monster? Both use high culture topics of quest, genre, and archetypes to help us understand this idea--how do they use their literary standpoints to affect us? What is the moral pur..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Write a program with main() method that tests the examgrade

Create a new student with valid first/last name, invalid id, and valid status.

  Within an arm reach of desire

The ability to engage in global branding is a key advantage to any large company. Coca-Cola is fortunate in that it possesses a number of instantly recognisable icons which go beyond the familiar taste of its product. In particular the Company ben..

  Data analysis and interaction design

The collection of usability data from consumers can come from a variety of format methods (i.e., a Website, text message, door-to-door, phone call, etc.). NVivo and Atlas are two (2) well-known data analysis tools described in the textbook. Determ..

  Very simple python problem

VERY SIMPLE PYTHON PROBLEM An evil number is a positive integer whose binary digits add up to an even number (the opposite of an evil number is an odious number, whose binary digits add up to an odd number). For example, 14 is odious:

  Prepare a research paper on hardware software

Prepare a research paper on following topics Hardware, Software, Firmware, Ethernet Card Slot, Flash memory card reader, Motherboard, System fan connector

  Technical specification indicating wireless technology

write a technical specification indicating which wireless technology you would use for specific scenarios

  Discuss whether there are too many standards organizations

Discuss whether there are too many standards organizations attempting to regulate the networking field

  Design an algorithm that prompts the user to enter a number

Design an algorithm that prompts the user to enter a number in the range of 1 through 100 and validates the input.

  Design and implement an application that maintains the data

Design and implement an application that maintains the data

  Information on an employee

Many employers gather and store information on an employee's use of email and the Internet. They will then use that information to measure the quality and quantity of an employee's work. Identify one ethical implication of this practice. (minimum..

  Definition of control structure is a series of properly

definition of control structure is a series of properly

  Contrast the effort required for a top-down parser

Consider the task of building a parser for the programming language Scheme

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd