Thursday, December 4, 2008
Shell Scripting #3 - Login Validation
Keywords: Linux, Shell Scripting, Scripts, BASH
Following code snippet shall be used to authentic the user before executing the shell program:
#!/bin/shread userread passif [ $user == "username" ]thenecho "Log-In Successful"elseecho "Log-In Failed"fi
Keywords: Linux, Shell Scripting, Scripts, BASH
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment