linux shell编程模拟用户登录
2010-10-12 15:12
316 查看
a="hello world"
echo "A is:" $a
echo "when you want to run this script ,please input your id and passwd!"
echo "please input you ID:"
read ID
stty -echo
echo "please input your password"
read password
stty echo
if [ $ID = "abc" ] && [ $password = "123" ]
then
echo "ok ,your have already login."
else
echo "your input is error"
fi
echo "A is:" $a
echo "when you want to run this script ,please input your id and passwd!"
echo "please input you ID:"
read ID
stty -echo
echo "please input your password"
read password
stty echo
if [ $ID = "abc" ] && [ $password = "123" ]
then
echo "ok ,your have already login."
else
echo "your input is error"
fi
相关文章推荐
- C#简单模拟用户登录类
- python3.0 模拟用户登录,三次错误锁定的实例
- 简单的模拟用户登录
- asp.net访问网络路径方法(模拟用户登录)
- C#自动模拟用户登录发布或发布数据源码?--AliasNet
- 编写代码实现,模拟用户登录情景,并且只能登录三次。 只允许输入三次密码,如果密码正确则提示登录成,如果三次均输入错误,则退出程序。
- 移动大脑-SpringMVc搭建RestFul后台服务(三)-RestFul接口编写(模拟用户注册登录)
- 【CURL】模拟登录网站并获取用户信息
- 模拟用户登录效果
- 使用WinHttp实现POST方式用户模拟登录网站
- react.js路由(4.x):模拟一个用户登录2(登录判断、路由的多种加载方式)
- 在服务中模拟当前登录用户读取HKEY_CURRENT_USER
- PreparedStatement,注册攻击,模拟用户登录
- python 3.0 模拟用户登录功能并实现三次错误锁定
- android 访问web端与解析json,模拟用户登录
- JavaSE实战——GUI简述、用户登录注册最终版、模拟微信打飞机游戏实例
- 模拟用户登录
- 模拟用户登录
- xpath技术解析xml以及案例模拟用户登录效果
- 【微信公众平台改版后】Java模拟登录微信平台,主动推送消息给用户