首页 > 学院 > 开发设计 > 正文

Shell脚本

2019-11-08 03:21:59
字体:
来源:转载
供稿:网友
数学计算要用’[ ]’括起来并且外头要带一个’$’a=1b=2sum=$[$a+$b]read 读入用户的输入echo "Please input another number:"read yread -p … x x变量前需要空格read -p "Please input another number:" xif ..then else fi 注意两个()read -p "Please input your score:" aif ((a<60)) ; then echo ""else echo ""fi

5.操作Oracle数据库

sqlplus city_bb/msgc78_+sj << EOFinsert into t_bankdata select * from t_bankdata_20170218;exit;EOF[root:localhost]$ nohup ./sh & --利用服务器后台执行,并日志输出
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表