Question 01 (a): Design a bash script (Linux) and configuration to do the following: A medicine...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Question 01 (a): Design a bash script (Linux) and configuration to do the following: A medicine dispensing machine in a hospital ward dispenses medicines when correct password is entered on the keypad. The system allows three attempts for password. If correct password is entered, the medicine is dispensed by calling the script DispenseMedicine.py it is echoed to the screen Access granted, else the system echoes 'access denied. On 3 wrong attempts, an alert sms is sent to the Admin person in charge by calling the script "alertAdmin.py". Question 01 (a): Design a bash script (Linux) and configuration to do the following: A medicine dispensing machine in a hospital ward dispenses medicines when correct password is entered on the keypad. The system allows three attempts for password. If correct password is entered, the medicine is dispensed by calling the script DispenseMedicine.py it is echoed to the screen Access granted, else the system echoes 'access denied. On 3 wrong attempts, an alert sms is sent to the Admin person in charge by calling the script "alertAdmin.py".
Expert Answer:
Answer rating: 100% (QA)
Bash binbash Configuration correctpasswordyourpasswordhere adminphonenum... View the full answer
Related Book For
Legal Research Analysis and Writing
ISBN: 978-1305948372
4th edition
Authors: William H. Putman, Jennifer Albright
Posted Date:
Students also viewed these programming questions
-
A comparison and contrast of the basic assumptions of conflict theories: Marxist theory, power elite theory, and interest group (pluralist) theory. An explanation of how these theories apply to...
-
Question 3: (a) A GMPE predicts a median peak horizontal acceleration of 0.4 g. If the standard deviation in In units is 0.5, what is the 84th percentile estimate for the peak horizontal...
-
What prompted partners at KPMG to facilitate cheating on internal training exams? In 2018, Timothy Daly, a former lead engagement partner, solicited and received questions and answers to the...
-
What are the four key building blocks of financial statement analysis? a. Liquidity and efficiency, solvency, profitability, and market b. Liquidity and efficiency, solvency, profitability, and...
-
A large number of consecutive IP address are available starting at 198.16.0.0. Suppose that four organizations, A, B, C, and D, request 4000, 2000, 4000, and 8000 addresses, respectively, and in that...
-
under the transformation T. Tn as
-
An RVE from a particle-reinforced composite is shown in Figure 3.12. The particle has a cross-sectional area \(A_{\mathrm{p}}(x)\) that varies with the distance \(x\), and the stresses and strains in...
-
On October 31, the stockholders equity section of Ennis Company consists of common stock $300,000 and retained earnings $900,000. Ennis is considering the following two courses of action: (1)...
-
A company purchased a van at the beginning of the year with a cost of $50,500. The useful life is estimated to be 10 years with a $5,000 salvage value and the company uses the straight-line method of...
-
1. What type of attitude scale is used by the ACSI if any? 2. What type of attitude study might you design if you were the consultant? 3. How would you use results from this approach to diagnose...
-
If you have a MongoDB source feeding into your data warehouse and an individual field value changes, what is the downstream impact? What is the downstream impact if the schema of new documents in...
-
Jessica's team has been working on a new beverage product that she believes is almost ready for launch. However, the next step is to see how consumers react to the new beverage in a realistic...
-
Relate five levels of business ethics; companies use these levels for ethical reasoning and moral decision-making by using these levels, cross-function area professionals' moral responsibility and...
-
On December 1, 2025, Marigold Corp. purchased a tract of land as a factory site for $775000. The old building on the property was razed, and salvaged materials resulting from demolition were sold....
-
Molander Corporation is a distributor of a sun umbrella used at resort hotels. Data concerning the next month's budget appear below: Selling price per unit Variable expense per unit Fixed expense per...
-
On February 1, 2025, Vaughn Manufacturing purchased a parcel of land as a factory site for $311000. An old building on the property was demolished, and construction began on a new building which was...
-
Ron Williams recently took over as the controller of Johnson Brothers Manufacturing Last month, the previous controller left the company with little notice and left the accounting records in...
-
The roof of a refrigerated truck compartment is of composite construction, consisting of a layer of foamed urethane insulation (t2 = 50 mm, ki = 0.026 W/m K sandwiched between aluminum alloy panels...
-
a. Give the legal encyclopedia reference(s) that refers to aggravated or armed robbery. b. Give the ALR cite (if any) that addresses the question of how the use of an unloaded gun affects criminal...
-
Select Shepardize. For the case of Harris v. Cincinnati, 79 Ohio App. 3d 163, 607 N.E. 2d 15 (1992), how many citing decisions are listed? Are there any cases showing a negative history? How many law...
-
KeyCite this case: United States v. Martinez-Jimenez, 864 F.2d 664 (9th Cir. 1989), what are the citations of the 1995 and 1993 cases listed under Positive History that have a yellow flag? For...
-
Which of the following are boiler mountings ? (a) Economiser (b) Fusible plug (c) Super heater (d) Injector
-
Which out of the following boiler is capable of generating superheated steam without additional accessories ? (a) Cochran (b) Lancashire (c) Locomotive (d) Cornish
-
The economiser of the boiler plant is used mainly to (a) increase steam capacity (b) reduce fuel consumption (c) increase steam pressure (d) increase life of the boiler
Study smarter with the SolutionInn App