Write Bourne Again Shell Script manage menu driven program

Assignment Help Operating System
Reference no: EM131847000

Operating Systems UNIX Script Assignment

Tasks: You are required to write a Bourne Again Shell Script (bash) to manage a menu driven program.

When executed the user should be presented with a menu with 4 (four) options:

1. Print the following user information: the home directory, path, userid , login shell together with the current date and time.

2. Ask a user a range and it displays eight random number between the range. [Range difference must be 100. Example Enter a range: 200 300

3. Print out the highest and the lowest numbers of the generated eight random numbers

4. Exit the program

Requirements:

Your script must allow one of these options to be chosen at a time. The menu must be presented over and over again, until the fourth option (exit) is chosen. An appropriate error message must be displayed if an invalid option is chosen.

Option one, your script should list the specified environment variables. The current output of the date command, together with the userid and the full name of the user also needs to appear in this file, before the environment variables.

Option two should prompt the user a range and displays eight (8) random numbers.

Option three should list the highest and lowest number of the generated random numbers.

Option four should cause a graceful exit from the menu and the whole program.

Reference no: EM131847000

Questions Cloud

What are the biases that exist with the given functions : We used a hash function for strings that weighted characters by position. Devise an alternative weighting scheme. What are biases that exist with the functions?
Prepare a risk assessment report on the investments company : You are also required to read a fictional case study based on the operations of a rapidly growing investments seminar company
Generate the hash values using the perfect hash algorithm : Research perfect hash functions. Using a list of names (classmates, family members, etc.), generate the hash values using the perfect hash algorithm.
How the given list is sorted by the bubble sort algorithms : Consider the following list of integers: [10, 9, 8, 7, 6, 5, 4, 3, 2, 1]. Show how this list is sorted by the following algorithms: bubble sort and selection.
Write Bourne Again Shell Script manage menu driven program : NIT1202 - Operating Systems UNIX Script Assignment. Tasks: You are required to write a Bourne Again Shell Script (bash) to manage a menu driven program
How characters represent certain versions of australian : Watch the set films, observing how characters represent certain versions of Australian Identity, or go against them.
What criteria does your new strategy perform better or worse : Under what criteria does your new strategy perform better or worse than the strategy from this chapter?
Coefficient of friction between two materials : The coefficient of friction between two materials is 0.25. A 15.0 kg object made of one of the materials is being pulled west
Atmosphere of pressure that normally would be added : Do not consider atmospheric pressure in your calculation, since the pressure inside of the submarine is maintained at 1 atmosphere

Reviews

len1847000

2/3/2018 5:00:05 AM

For this assignment, you may work with one partner, if desired. To Be Handed in: A copy of your working bash shell script needs to be handed in to your tutor and uploaded in VU Collaborate Assignment Dropbox. Make sure your script includes your name and ID. Make sure the code is well commented. Documentation including: A neatly formatted print-out of your bash shell script. Appropriate and specific acknowledgments of aid you received from people, books, journals, etc. for this assignment. Remember to make your script user-friendly and easy to read!

len1847000

2/3/2018 4:59:58 AM

Criteria: the degree to which the problem has been correctly solved, the structure and clarity of the solution and the quality of the accompanying documentation. You are required to demonstrate in Week 11 during your lab time. If you do not demonstrate, you get a 0 mark. Late submission of assignment will NOT be accepted. You are strongly advised to plan to hand-in your assignment early to make allowance for any last minute hitches. The accompanying documentation for the assignment must be word-processed.

Write a Review

Operating System Questions & Answers

  Implementation of algorithms for process management

The Shortest Job Next (SJN) algorithm queues processes in a way that the ones that use the shortest CPU cycle will be selected for running rst.

  Develop a user mode command interpreter

Develop a user mode command interpreter which support list-short.

  Memory allocation in operating system

Analysis and implementation of algorithms for memory allocation in operating system, Explain First- t and best- t methods are used in memory allocation in operating systems.

  Stand alone child process

Forking the child process

  Write a multi-threaded program

Write a multi-threaded program to solve producer and consumer problem

  Marginal and average cost curves

n a competitive market place (pure competition) is it possible to continually sell your product at a price above the average cost of production.

  Simulating operating systems scheduling

Simulate the long-term scheduler, the short-term scheduler and the I/O scheduler of the computer using the First-Come-First-Serve algorithm.

  Issues with trusted platform module

Research paper discussing the issues with Trusted Platform Module (TPM)

  Threads

Explain a complication that concurrent processing adds to an operating system.

  Design and programming

Use the semaphore methods to control the concurrency of the solution

  Virtual machines

Virtual machines supported by a host operating system

  Discuss an application that benefits barrier synchronization

Discuss an application that would benefit from the use of barrier synchronization

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