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

  Features of microsoft word

Summarize your findings of the event/issue in the article in a memo of 350-700 words

  Structured analysis and object-oriented techniques

A frequently asked question is "Can structured techniques and object-oriented techniques be mixed?

  Display the largest of a list of positive numbers

solve the problem by using raptor. Find and display the largest of a list of positive numbers entered by the users. The user should indicate that he/she has finished entering numbers by entering a 0.

  Floating point numbers in scientific notation

Floating point numbers in scientific notation represents numbers as a base number and an exponent. For examples: 2E3, 2.0E12, 3.14E+12, 3.14E-12. Give a grammar that generates floating point numbers. Use your grammar to derive 3.14E+12.

  The development of cad and bim in architectural use

A brief history report about the development of CAD and BIM in architectural use supported with pictures and diagrams and perhaps a simple timeline. all in one A2 page. prefered page format is indesign.

  How the game was integrated with the concepts of computing

Each week, you will explore a new game through the lens set up by the weekly material. For example, when working with Turing machines, you may wish to represent the concept through a game of Hangman.

  How silicon-based semiconductors revolutionized computing

New materials frequently lead to new technologies that change society. Describe how silicon-based semiconductors revolutionized computing.

  Search the web for steganographic tools

Search the Web for steganographic tools.

  One from manufacturing

One from manufacturing and the other from a service industry

  Write a program that places the names in an array

The USPres.txt contains the names of the 44 U.S. presidents in the order in which they served. write a program that places the names in an array and displays all presidents for a requested range of numbers.

  Create a program that uses a menu with options

Create a program that uses a menu with options to enter student information (name, ID, GPA), print student information, or quit the program. Use data files and FILE pointers to store and print information entered.

  New century develop a new information system

New Century Wellness Group offers a holistic approach to health care with an emphasis on preventive medicine as well as traditional medical care. In your role as an IT consultant, you will help New Century develop a new information system

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