Question: Code for authLoop.sh : str 1 = eecs 2 0 3 1 #assigning eecs 2 0 3 1
"Code for authLoop.sh :
streecs
#assigning eecs to variable PSWORD
read p Enter the password: password
#comparing the password enter by the user with the one stored
while $password $str
do
echo Authentication failed"" #Echo command prints the quoted statement
read p Enter the password: password
done #This will keep asking to enter a password until we enter the right one.
echo Authentication successfu UT l #Echo command prints the quoted statement
Now, please solve problem #Problem : Write a scrip named authFunc.sh that does the same task as the script authLoop.sh in the homework for November but write two functions to display the messages Authentication successful"" and Authentication failed"". Name the functions prtSuccess and prtFailure, respectively. authLoop.sh Enter the password: eecs Authentication failed Enter the password: eecs Authentication failed Enter the password: math Authentication failed Enter the password: eecs Authentication successful"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
