Question: Question 01 (a): Design a bash script (Linux) and configuration to do the following: A medicine dispensing machine in a hospital ward dispenses medicines

Question 01 (a): Design a bash script (Linux) and configuration to do the following: A medicine dispensing

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".

Step by Step Solution

3.49 Rating (149 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Bash binbash Configuration correctpasswordyourpasswordhere adminphonenum... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!