List the contents of the current directory

Assignment Help Programming Languages
Reference no: EM131207778

Shell Programming

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 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.

Reference no: EM131207778

Questions Cloud

Facilitate consultation and participation : Q.1 What methods can be used to facilitate consultation and participation? Discuss in 100-120 words Q. 2 Explain (100-120 words) the barriers you think might prevent effective communication of health and safety information.
How the two countries are similar in terms of hofstede''s : Given a scenario where two organizations, one located in each country, are to do business with each other, provide recommendations that would be beneficial in helping management address communications in terms of the different cultural perspective..
Prepare a corrected balance sheet : Identify the assumptions that Millie has violated and explain how each event should have been handled. Prepare a corrected balance sheet.
How much influence should stakeholder interests exert : Current trends indicate that for-profit companies are paying close attention to stakeholder interests. How much influence should stakeholder interests exert over a for-profit company? Why?
List the contents of the current directory : List the contents of the current directory. Create the directory structure and create the files as defined in the previous Individual Project.
Approaches would be appropriate and beneficial to the busine : Discuss two (2) strategies that they can use to enter the global market, and explain why these approaches would be appropriate and beneficial to the business.
May you intentionally prepare a tax return for joe : Are you personally obligated to abide by the AICPA's Statement of Standards for Tax Services, even though you do not work in public practice?
What is my standard for a completed test : What is my standard for a completed test? That the two blades of the scissors came together in a scissoring motion when I closed the scissors.
Description of the excellence framework they implemented : Develop a list of questions to be asked and undertake the interview. Write this up in a report.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write down a program which explores the seating patterns

write a program that explores the seating patterns related to course performance by using an array of student scores.

  How is active directory implemented?

How is Active Directory implemented?

  Write program in java to input basic salary of persons

Write the program in java to input basic salary of 15 persons. Each one of them gets 25% of basic as hra (house rent allowance), 15 % of basic as conveyance and 10 % of basic as entertainment allowance.

  Develop program that simulates section of a restaurant menu

Develop a console program that simulates a section of a restaurant menu. Each item will have a different price and your program should define at least ten (10) items. You will need to obtain an order from the user who should provide their menu sel..

  Write console application that displays the sizes

Create a file that contains your favorite movie quote.  Use a text editor such as Notepad and save the file as Quote.txt.  Copy the file contents and paste them into a word-processing program such as Word.

  Program should prompt the user at the beginning

The program should prompt the user at the beginning for the number of different milk quantities to evaluate in this one run of the program.

  Explain what n represents in your program

Provide an example of a program that contains an algorithm whose Big-T is exponential. Clearly explain what n represents in your program.

  Write program to compute student-s quiz average

Write a program that will compute student's quiz average. Program must prompt the user for the number of quizzes and then ask the user for each quiz grade.

  Design application that reads arbitary number of integers

Design and implement an application that reads an arbitary number of integers that are in the range of 0 to 50 inclusive and counts how many occurences of each are entered.

  Assume you have bought an old semi-furnished house and need

assume you have bought an old semi-furnished house and need to renovate it before moving in. generally renovation work

  Create software to perform advanced geometric calculations

You are hired by the engineering company to create software which performs advanced geometric calculations. Your new boss asked you to create the application

  All variables that aren''t numeric variables

All variables that aren't numeric variables

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