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

  Limitations of the use of ai technologies

Determine some of the limitations or dangers you see in the use of AI technologies such as expert systems, virtual reality, and intelligent agents?

  Possibilities curve between health and all other goods

Draw a production possibilities curve between health and all other goods

  Report on content management services

Choose one Drupal site and one Joomla site (an alternative CMS package) from the lists below and evaluate them according to how well you think they manage and present their content.

  Discuss some options for mobile wireless

Please discuss some options for mobile wireless internet connection, and describe the types of hardware that would be involved in making such a connection

  Cnt books hired you as a productivity consultant

CNT Books hired you as a productivity consultant. Currently, it employs six people who still use floppy disks to get files from one computer to the next. You're to bring them into the 21st century by configuring a network that allows them to..

  Writing quality and formal structure of the paper

Writing Quality and formal structure of the paper

  Utilizing supporting documentation obtained

Please provide a one page response to the following topic utilizing supporting documentation obtained from your textbooks and the Internet.

  Solve decanting problem using euclidean algorithm

Use Euclidean algorithm to solve decanting problem for decanters of sizes 1317 and 1075. Or we can say, determine integers x and y.

  Web page makes effective and consistent use of headings

Use search engine to determine the example of Web page which makes effective and consistent use of headings to organize Web page content.

  How do you write a program in visual basic

My problem is the program should pretty much erase the pervious series data points for the control limits for both charts and update the new value with the recalculated values, and I am not sure how to do this. Thank you!

  What are the advantages of using xml

It is common for XML to be used in interchanging data over the Internet. What are the advantages of using XML in data interchanging?

  Weighted probabilities for x86 processors

Create a procedure that receives a value N between 0 to 100. When the procedure is called, there should be a probability of N/100 that it clears the Zero flag. Write a program that asks the user to enter a probability value 0 to 100.

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