码迷,mamicode.com
首页 >  
搜索关键字:bash shell    ( 38571个结果)
使用if条件语句编写MySQL备份脚本
#!/bin/bash #备份数据库 dir=/usr/share/nginx/html/project/ssh/backup/`date +%Y%m%d` mysqldb=test musqluser=root mysqlpwd=123456 mysqlicmd=/usr/bin/mysqldum ...
分类:数据库   时间:2020-06-25 21:46:08    阅读次数:102
APP——自动化——python——截图放到电脑文件里面
# 计算器: C:\Users\del>adb shell dumpsys window w |findstr \/ |findstr name= # mSurface=Surface(name=com.youba.calculate/com.youba.calculate.MainActivity ...
分类:移动开发   时间:2020-06-25 21:41:10    阅读次数:94
第十一周
脚本练习ing
分类:其他好文   时间:2020-06-25 21:34:56    阅读次数:76
主机存活检测、局域网主机存活检测、端口检测
一、主机检测命令ping #!/bin/bash #**************************************************** #Date: 2020-06-25 #Author: Damon Ye #FileName: MailPing.sh #Description ...
分类:其他好文   时间:2020-06-25 21:12:07    阅读次数:38
APP——自动化——python——关闭和打开初始化(desired_caps中设置的的app
# 计算器: C:\Users\del>adb shell dumpsys window w |findstr \/ |findstr name= # mSurface=Surface(name=com.youba.calculate/com.youba.calculate.MainActivity ...
分类:移动开发   时间:2020-06-25 19:52:42    阅读次数:127
shell脚本之if以及case多分支
1.语法格式 1.1 最基本的格式 if [ condition ];then 符合if时执行的语句 fi 1.2 扩展格式 if [ condition ];then 符合该if时执行的语句 elif [ condition ];then 符合该if时执行的语句 else 都不符合时执行的语句 f ...
分类:系统相关   时间:2020-06-25 19:51:49    阅读次数:70
关联数组——按扩展名统计指定目录中文件的数量
一、脚本说明 #!/bin/bash #**************************************************** #Date: 2020-06-25 #Author: Damon Ye #FileName: ExtensionName.sh #Description: ...
分类:编程语言   时间:2020-06-25 19:49:16    阅读次数:54
shell变量和系统变量
定义变量 [vagrant@localhost ssh]$ vi param.sh #!/bin/bash A=123 echo "$A" [vagrant@localhost ssh]$ ./param.sh 123 常见的系统变量 SHELL 常见的系统变量解析: $0 当前程序的名称 $n 当 ...
分类:系统相关   时间:2020-06-25 19:07:50    阅读次数:69
APP——自动化——python——系统未按装待测app和已经按装待测app不同配置
主要区别: 'app': 'C:\\Users\\del\\Desktop\\b\\jsq.apk', 安装了就不需要路径,没有安装就需要路径 一、系统未按装待测app # C:\Users\del>adb shell dumpsys window w |findstr \/ |findstr na ...
分类:移动开发   时间:2020-06-25 17:56:52    阅读次数:109
linux之shell---特殊字符$
$0:当前shell脚本的文件名$1:shell脚本的第一个位置参数$2:shell脚本的第二个位置参数$3:shell脚本的第三个位置参数$9之后要加{};例如${10}、${11}...$*:所有传递的位置参数$@:所有传递的位置参数 $*与$@区别:不加""(双引号)时候两者相同 加了引号后, ...
分类:系统相关   时间:2020-06-25 17:25:11    阅读次数:82
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!