Question-shell programming

Assignment Help Macroeconomics
Reference no: EM131212057

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

Reference no: EM131212057

Questions Cloud

Perform common operations : 1) MATLAB has several types of built-in math functions that can help you perform common operations. a) Write the MATLAB code that takes the absolute value of -134.
Maintain an absolute address in the instruction register : Maintain an absolute address in the instruction register. When a successful branch or call is encountered, dynamic address translation is employed, with the results stored in the instruction register.Which approach is preferable?
Recognized in the consolidated income statement : Houston Corporation operates a branch operation in a foreign country. Although this branch deals in pesos, the U.S. dollar is viewed as its functional currency. Thus, a remeasurement is necessary to produce financial information for external reportin..
What is symmetric cryptosystems : What is Symmetric Cryptosystems and Asymmetric Cryptosystems?
Question-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 the..
Explain what did you learn from the interview : What did you learn from the interview? How did the interviewee and/or the interview help you gain a deeper understanding of your topic? Other findings?
Prepare journal entries to record the budget : Prepare journal entries to record the budget and Prepare journal entries to record the actual revenues and expenditures. Assume all transactions resulted in increases or decreases in cash.
How many bits in the physical address specify the frame : How many bits in each page table entry? Assume each page table entry contains a valid/invalid bit.
Amendment to the us constitution regarding cyber law : 1) Discuss proposals to add an amendment to the U.S. Constitution regarding cyber law. 2) Discuss aspects of the U.S. Constitution that would concern such a law, including the 1st, and 4th Amendments regarding individual rights and law enforcement..

Reviews

Write a Review

Macroeconomics Questions & Answers

  Which is an expansionary fiscal policy

Which of the following is an expansionary fiscal policy? Which of the following combination of assets is considered to be money? When you buy a ticket to the rodeo, you are using money as a(n).

  Determine equilibrium quantity

Now determine equilibrium quantity and graph the two equations to substantiate your answers and label these two graphs as Dl and SI.

  Explain which of the four components of gdp had

In view of the weak economy of the last several years, explain which of the four components of GDP had, or is having, the greatest positive impact in our economy. Use the following historical tables to support your response.

  United states has absolute advantage over many countries in

united states has absolute advantage over many countries in production of most goods and services. yet the country is

  1 suppose that the total liabilities of a depository are

1 suppose that the total liabilities of a depository are checkable deposits equal to 2 billion. it has 1.65 billion in

  Who will benefit from growth focussed more on consumption

Explain why it is, in recent years, that the Chinese economy has become better at creating jobs - Who will benefit from growth focussed more on consumption?

  What is the absolute size of its public debt in year 4

As Suppose a country has no public debt in year 1 but experiences a budget deficiet of $40 billion in year 2 , a budget deficiet of $ 20 Billion in year 3 a surplus of $10 billion in year 3 and a budget deficiet of $2 billion in year 4. What is the a..

  Williams and westrich stock is currently selling

Williams and Westrich stock is currently selling for $15.25 per share, and the dividend is expected to continue.

  Illustrate what do you think would be effect of increase

Illustrate what do you think would be the effect of Increases/decreases in the dollar's exchange value on the firm's profitability.

  Supply curves for the cigarette market

Statistical studies have shown that the price elasticity of demand is -0.4, and the price elasticity of supply is 0.5. Using this information, derive linear demand and supply curves for the cigarette market.

  Equilibrium level of national income

Suppose an economy characterized by the following equations; Assume W=10,000. Draw the aggerate expenditure function on a scale diagram along the 45 degree line.

  Economy adjusts back to long-run equilibrium

Explain how the economy adjusts back to long-run equilibrium. When the economy has adjusted back to long-run equilibrium, how have the values of each on the following changed relative to what they were before the increase in exports:

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