摘要:
Bash shell 的算术运算有四种方式:1:使用 expr 外部程式加法 r=`expr 4 + 5`echo $r注意! '4' '+' '5' 这三者之间要有空白r=`expr 4 * 5` #错误乘法 r=`expr 4 \* 5`2:使用 $(( ))r=$(( 4 + 5 ))echo...
阅读全文
posted @ 2014-09-24 10:58
Rosepotato
阅读(186)
推荐(0)
摘要:
shell的逻辑运算符 涉及有以下几种类型,因此只要适当选择,可以解决我们很多复杂的判断,达到事半功倍效果。一、逻辑运算符逻辑卷标 表示意思 1.关于档案与目录的侦测逻辑卷标!-f常用!侦测『档案』是否存在 eg: if [ -f filename ]-d常用!侦测『目录』是否存在-b侦测是否为一个...
阅读全文
posted @ 2014-08-20 10:30
Rosepotato
阅读(240)
推荐(0)
摘要:
Simply with output redirection:system_profiler > file.txtBasically, this will take the output of system_profiler and save it to the file file.txt. The...
阅读全文
posted @ 2014-08-20 10:29
Rosepotato
阅读(283)
推荐(0)
摘要:
如何安装Jenkins as rpm:$ sudo service jenkins restartUsage: /etc/init.d/jenkins {start|stop|status|restart|force-reload}
阅读全文
posted @ 2014-08-06 11:23
Rosepotato
阅读(216)
推荐(0)
摘要:
转自:http://7056824.blog.51cto.com/69854/403669作为一名 linux 管理员,在多台 Linux 服务器上登陆进行远程操作是每天工作的一部分。但随着服务器的增多,每次登陆,系统都会提示输入用户名和密码,频繁的输入用户名和密码是一件让人很烦的事 情。也许有人说...
阅读全文
posted @ 2014-08-06 11:09
Rosepotato
阅读(284)
推荐(0)
摘要:
Introduction with Jenkins iOSIf you are new to continuous integration for mobile platforms then you are in the right place. This article will explain ...
阅读全文
posted @ 2014-08-01 14:00
Rosepotato
阅读(1506)
推荐(0)
摘要:
对原作者表示感谢,转自博客:http://www.otechu.me/zh/2011/12/filtering-adb-logcat-output/本文介绍如何在shell 命令行中过滤 adb logcat 输出的几个小技巧。开发当中经常看到别人的 log 如洪水般瞬间刷满了屏幕,对自己有用的信息...
阅读全文
posted @ 2014-06-30 17:52
Rosepotato
阅读(537)
推荐(0)
摘要:
转自:http://www.ibm.com/developerworks/cn/aix/library/au-aix-systemsdirector/section2.html如何使用 Java 测试 IBM Systems Director 的 REST API让我们开始吧关于 REST APIR...
阅读全文
posted @ 2014-06-09 22:48
Rosepotato
阅读(600)
推荐(0)
摘要:
转自:http://yong3773.iteye.com/blog/1943583首先简要介绍一下我们的系统。我们整个系统中,可视化的应用(web,APP)都是基于后端的saasapi。我们的saasapi采用rest风格,采用http协议,以json作为数据载体。所以,对后端的api接口进行测试很...
阅读全文
posted @ 2014-06-09 22:39
Rosepotato
阅读(2345)
推荐(0)
摘要:
1. 发送键盘事件:命令格式1:adb shell input keyevent “value”其中value以及对应的key code如下表所列:KeyEvent Value KEYCODEComment0KEYCODE_UNKNOWN1KEYCODE_MENU在SDK2.1的模拟器中...
阅读全文
posted @ 2014-06-04 16:56
Rosepotato
阅读(3261)
推荐(0)