Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Homework Help/Study Tips Expert

Fully Functional Script -

In this section, you will write a fully functional script to help your manager with an important project that will build upon what you learned from your script work in Milestone Four. After you have written the script, you will execute it to generate a report for all three users (once for Bob, once for Henry, and once for Frank). You should have three unique generated reports in your ~/scripts directory (or more if you ran it multiple times per user). This script will be showcased to upper management and should demonstrate your best work.

a) Write the Script: Write a fully functional and professional looking script that meets all of the following requirements.

1. Resides within your ~/scripts directory and is named tps-report-gen.sh.

2. Take a supplied user's first name (Bob, Henry, or Frank) in any order when the script is executed (for example: sh tps-report-gen.sh bob).

3. Print out to the screen the text: TPS REPORT LISTING

4. A double newline.

5. Print out to the screen neatly the user's name, company position, and home directory path on one line.

6. A double newline.

7. A list of TPS Reports associated with that user.

8. A double newline.

9. Print out to the screen the text: END REPORT LISTING

10. The script needs to print the output to the screen and generate a report into the same directory as the script named tps-list-USER-DATETIME.rpt. USER would be the user's username and DATETIME would be the date and time that the report was run. USER and DATETIME would both change based on the username supplied and the date and time the script is executed. It may be easier to build the report file first, then simply cat the file to the screen within the script. An example report would look like:

tps-list-bob-030816624.rpt

HINT: To format the DATETIME portion as requested, use the following:

date "+%m%d%y%k%M" | awk -F" " {'print $1$2'}

b) Execute the Script: Execute the script to generate a report for all three users: once for Bob, once for Frank, and once for Henry. You should have three unique generated reports in your ~/scripts directory (or more if you ran it multiple times per user). Each report (and displayed output) should look like the following (but with the correct associated TPS Reports listed).

TPS REPORT LISTING

bob, ops, /home/bob

tps-report-02092016                                                      

tps-report-02102016

tps-report-02112016                                                      

tps-report-02122016

END REPORT LISTING.

Homework Help/Study Tips, Others

  • Category:- Homework Help/Study Tips
  • Reference No.:- M92000737

Have any Question?


Related Questions in Homework Help/Study Tips

Question annotated bibliographstudents will write an

Question: Annotated Bibliograph Students will write an annotated bibliography of three articles from academic (scholarly) journals. The articles must be related to their research topic. In this task, students will annota ...

Answer the following question q1 how can internet

Answer the following Question : Q1: How can Internet technologies help a business form strategic alliances with its customers, suppliers, and others? Q2: Explain how information technology can be used to implement the fi ...

Major is education and sport managementfor this assignment

Major is Education and Sport Management For this assignment, develop a personal doctoral narrative. In this narrative, articulate both what you already know about yourself and your accomplishments, where you intend to go ...

Question topic servant leadership from a christian

Question: Topic: Servant Leadership from a Christian Perspective: The Issue of Serving Leadership Journal: Serving Details: Journaling provides a valuable tool for recording, reflecting on, and reviewing your learning. T ...

Assignment descriptionprepare a 4-6-page paper that

Assignment Description Prepare a 4-6-page paper that addresses the following questions: • What are some of the ways that organized crime impacts you and a community or city (of your choice) directly? • What are some of t ...

Question topics 1windows and the threat landscape2security

Question: Topics: 1. Windows and the Threat Landscape, 2. Security in Microsoft Windows OS 3. Access Controls in Microsoft Windows 4. IoT (Internet of Things).MDM systems and BYOD policies 5. Ransomware 6. Protecting Mic ...

Assessment task legal case study addressing a public health

Assessment Task: Legal case study addressing a public health issue Background For this assessment task you will write a case study, in a report format, addressing the legislative and regulatory requirements of a contempo ...

Question the treatment of anaphylactic shock varies

Question: The treatment of anaphylactic shock varies depending on a patient's physiological response to the alteration. Immediate medical intervention and emergency room visits are vital for some patients, while others c ...

Part i project management planit is suggested that the

Part I: Project Management Plan It is suggested that the project you select be manageable in scope and not overly complex. You will assume that the objectives and scope of the project you have selected have been vetted a ...

Jonas has been placed on probation for indecent sexual

Jonas has been placed on probation for indecent sexual behavior with a five-year-old boy. This is his first felony offense, with two prior misdemeanor offenses as an adult-one count of indecent exposure and one count of ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As