shell script

완료 등록 시간: Jan 27, 2015 착불
완료 착불

Part 1

You have been tasked to create a menu system which is the initial stage for a larger, hard drive seeking algorithm simulator.

The menu is a simple system with only 3 options (plus another command to exit) that will allow you to choose between the FCFS, SSTF or ‘SCAN & LOOK’ options.

The menu systems will be a bash script which upon selecting a valid option will launch another script for the respective option. These option scripts will be place holders for now and will just echo “ XYZ Simulation started…completed!”

Once a simulation is completed the user is returned back to the initial menu. The user also has the option to exit the systems at any point when prompted by simply typing/ issuing the command “Bye”.

The simulator system is a secure one, so prior to launching the menu system, the user is prompted to enter a valid user name (on this sever e.g. dp123). As well checking user validity the menus systems will also append to a ‘[url removed, login to view]’ file when a user started using the simulator and respectively when they left the system.

Part 2

You will now extend you menu system to include an aspect of persistence and configurability.

As we are simulating hard disk algorithms there are a few parameters we need to consider and pass to the respective place holders.

Firstly the HDD parameters three in total measured in milliseconds:

1. Seek time

2. Search time

3. Access time

As well as a list of blocks we want to access sequentially (this will be a list of requests with a range of 1-100)

These parameters will be held & read from 2 configuration files (one for HDD and the other for block access). Your system will now look for these configuration files, if set these parameter are passed to the selected simulator. If not set your systems will prompt the users of what is missing and will ask for values (no validation needed here).

It is assumed this simulator will be used a lot and will eventually become a [url removed, login to view] response to this assumption the [url removed, login to view] file must now have a format that will include the parameters:

User, time logged in, time logged out, simulator used, total time used (nearest second)

Once in the correct format you will create an independent simple script that will display total time spent in simulation given the choice between user, all users and a specific simulation (note user is validated against [url removed, login to view]).

In addition to the coded solution you are required to provide a short informal write up (500 words) describing how key aspects of code meet the requirements for this task.

쉘 스크립트

프로젝트 ID: #7040016

프로젝트 소개

1건(제안서) 재택 근무형 프로젝트 서비스 이용 중: Jan 27, 2015

수상자:

spencerb

I have a computer engineering degree from CMU. I've been programming in UNIX and doing a lot of bash scripts for 20 years. This is a little bit of effort though so I have to charge more than the budget listed.

£66 GBP (1일 이내)
(4건의 리뷰)
2.4