1.adb--- 截取屏幕的命令 :adb shell screencap -p | sed 's/\r$//' > outputs.png
2.jni ---命令 :$NDK/ndk-build
3. adb 启动程序:adb shell am start -n 包名/程序Activity类的类名(main)
adb 安装程序: adb install + 路径
...
分类:
移动开发 时间:
2014-06-19 10:17:59
阅读次数:
263
#include #include int main(int argc, char
*argv[]){ printf("%d\n", errno); return 0;}
分类:
其他好文 时间:
2014-06-16 07:26:44
阅读次数:
158
一般我们在linux上读取文件,是用vi工具,如果是写shell 脚本时,一般式通过cat 再
使用管道来达到流的处理。但如果文件太大,单纯的cat 可能会使用过多的内存,而且实现上还需要后续的加工,不大可取。下面我分享两个方法来读取部分文件。方法一sed
-n "10,20p" /opt/chen...
分类:
系统相关 时间:
2014-06-16 07:23:20
阅读次数:
308
1、dirs1)功能显示当前目录栈中的所有记录(不带参数的dirs命令显示当前目录栈中的记录)2)语法(1)格式:dirs
[-clpv] [+n] [-n](2)选项-c 删除目录栈中的所有记录-l 以完整格式显示-p 一个目录一行的方式显示-v
每行一个目录来显示目录栈的内容,每个目录前加上的....
分类:
系统相关 时间:
2014-06-16 06:06:19
阅读次数:
613
1. 语法与选项Short OptionLong OptionOption
Description-c–bytesprint the byte counts-m–charsprint the character
counts-l–linesprint the newline counts–files...
分类:
系统相关 时间:
2014-06-16 00:46:11
阅读次数:
509
以往一直都是crontab+shell调用java程序,最近需要反过来,使用java调用shell程序,实现定时管理,今天总结一下。基础内容:java的java.lang.Runtime类提供了exec静态方法,可以执行本地脚本程序事例:package
study;import java.io.In...
分类:
编程语言 时间:
2014-06-13 18:15:21
阅读次数:
321
#includevoid move(int n,char a,char b,char c){
if(n==1) printf("\t%c->%c\n",a,c); //当n只有1个的时候直接从a移动到c else {
move(n-1,a,c,b)...
分类:
其他好文 时间:
2014-06-13 17:59:50
阅读次数:
171
参考:ipa自动打包脚本
:http://webfrogs.me/2013/02/18/ios-automation/1、从以上链接中跳至GitHub下载打包所需的shell脚本文件夹2、打开终端cd到shell文件所在的绝对路径,格式如下cd
shell文件夹所在绝对路径3、键入一下命令执行脚本....
分类:
其他好文 时间:
2014-06-13 14:48:03
阅读次数:
281
Execute shell commandsThere are a number of
different ways to run shell commands from Ruby.TheexeccommandKernel#execreplaces
the current process and r...
分类:
其他好文 时间:
2014-06-12 06:50:15
阅读次数:
281