Advertisement
Guest User

Untitled

a guest
Dec 17th, 2014
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.44 KB | None | 0 0
  1. zero=0
  2. menu=1
  3. break=echo
  4. while [ $menu -eq 1 ];do
  5.     clear
  6.     echo Please sign in...
  7.     read -p "Username: " usrname
  8.     read -p "Password: " passwrd
  9.  
  10.         #make a command that will find password in second line and set it as "$password", then test it with (userinput:) "$passwrd" currect then continue
  11.         #the textfile/file will look something like:
  12.  
  13.         #Username
  14.         #Password
  15.    
  16.     if [ "$passwrd" -eq "$password" ];then
  17.         break=break
  18.     fi
  19. $break
  20. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement