Create a bourne shell script

Assignment Help Basic Computer Science
Reference no: EM13839204

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.

Reference no: EM13839204

Questions Cloud

Following concepts related to exposure thresholds : Briefly explain the following concepts related to exposure thresholds: time-weighted average, short-term exposure limit, exposure ceiling, and biological exposure indices.
Calaculate cost of goods is given as equivalent fob value : Calaculate Cost of goods is given as the equivalent FOB value for customs purposes and Freight costs are for transport form the country of origin to Melbourne Victoria Australia.
Determine if the table satisfies 2nf : Determine if the table satisfies 2NF.  If the table is already in 2NF, say so.  If a table violates 2NF, say so and produce the 2NF tables.  It is sufficient to just list the results of 2NF normalization
Irontown incorporated-plan to reduce turnover : In this case study, you will revisit Irontown Incorporated and prepare a plan to reduce turnover to meet the quality and cost objectives set by company leadership.
Create a bourne shell script : you need to package your commands in a script so that the patching team can run them on the production environment - Create the directory structure and create the files as defined in the previous Individual Project.
Question regarding the desirable leadership role : Setting: It is 5-10 years in the future and you have just been appointed to a highly desirable leadership role, one for which you have been preparing for many years. The organization has strong viability but is currently ineffective due to power s..
How the government has impacted public policy : Analyze how the public policy that you chose has impacted the U.S. government - Discuss if these changes were beneficial for the American public or not. Support your answer.
Performance problem in a business activity : Individual Project Activity 1. Identify or select a performance problem in a business activity that you believe could be resolved or substantially improved by the acquisition of IT services performed by a contractor selected in open competition as..
A rigid container holds an ideal gas : A rigid container holds an ideal gas (C_v = 0.75 kJ/(kgK) ). The container is cooled from 110 c to 20 c .Find the specific heat transfer (kJ/kg) for the process

Reviews

Write a Review

 

Basic Computer Science Questions & Answers

  The most essential in developing an input design

Explain what principle you believe is the MOST essential in developing an input design, and justify your choice.

  How does one convert logical data to numerical data

How does one convert logical data to numerical data? And I know it is not the real function, because that just finds the real part of a complex value.

  Role of linkages in management of technology

Discuss the role of linkages in management of technology in an enterprise with the help of relevant examples?

  Program that declares an array

Write a program that declares an array "alpha" of 50 elements of type "double". Initialize the array so that the first 25 elements are equal to the square of the index variable and the last 25 elements are equal to three times the index variable...

  The president is doing a good job

Add formats for Age (0-30, 31-50, 51-70, 71+), Party (D = Democrat, R = Republican), and Ques1-Ques4 (1=Strongly Disagree, 2=Disagree, 3=No Opinion, 4=Agree, 5=Strongly Agree)

  What influence the concept of pervasive computing

What you believe the eventually influence will be of concept of "pervasive computing" or"location based services" will be on society.

  Describe primary uses of networking for business

Describe at least 2 of the primary uses of networking for businesses. Discuss how you might match appropriate networking technologies.

  What are popular database management systems why use oracle

What are some of the more popular database management systems? Why use Oracle

  Describes best internet resources

For the course project, you will create an annotated bibliography of five sources that cites and describes four of the best Internet resources on a specified topic and one of the best library database resources.

  History and implementation of object oriented databases

Write a 3-4 page paper that describes any one of the topics in detail. Include a discussion on the following subject areas and include any graphs.

  Continuously prompts the user for a number

Create the logic for a program that continuously prompts the user for a number of dollars until the user enters 0. Pass each entered amount to a conversion method that displays a breakdown of the passed amount into the fewest bills

  Create a priority queue class called priqueue

Create a priority queue class called priQueue derived from the vector class. construct as a template class. priority queue needs to be based on a value from 1 to 10, any element outside the range of 1 to 10 should be given a value of 5.......

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