http://blog.csdn.net/roger_ge/article/details/5552740转自csdn,实现模拟鼠标键盘系列上一篇博文中讲述了通过Socket编程从外部向Emulator发送键盘鼠标模拟事件,貌似实现细节有点复杂。其实Android还有一种更简单的模拟键盘鼠标事件的方...
                            
                            
                                分类:
移动开发   时间:
2014-05-28 23:59:43   
                                阅读次数:
582
                             
                         
                    
                        
                            
                            
                                php执行外部命令的不少,例如:exec、shell_exec、system、popen等。我特意的讲一下popen,它跟其他函数不太一样,其他函数执行一个命令后,会等待其返回后,再向下执行,而popen则不会。所以你想用php程序并行的处理一些业务的时候,可以用popen。我举个例子,有两个php...
                            
                            
                                分类:
Web程序   时间:
2014-05-28 22:45:34   
                                阅读次数:
346
                             
                         
                    
                        
                            
                            
                                echo 
192.168.10.69>>ip.list-------------------------------------------#!/bin/bash#注意if和[]之间的空格rm 
-f ~/fanr/shell/DiskUsageAlert/out.printout=$(cat ~/f...
                            
                            
                                分类:
系统相关   时间:
2014-05-28 14:54:26   
                                阅读次数:
391
                             
                         
                    
                        
                            
                            
                                一、if判断数字: $A=12 $B=15 if(("$A"<"$B")) 
if(("$A"=="$B"))字符串: $A="HELLO" $B="WORLD" if [ "$A" = "FACT_LOGIN_USER" ] if [ 
"$A" = "$B" ]PS:字符串比较的时候...
                            
                            
                                分类:
其他好文   时间:
2014-05-28 09:32:44   
                                阅读次数:
347
                             
                         
                    
                        
                            
                            
                                这是一个清空系统日志的脚本:vim logmess_clean.sh#bin/bash 
//该脚本所使用的shell解释器cd /var/log///切换到存放日志目录echo > messages//清空日志echo 
"logmessages is clean"//脚本执行完成后输出“日志清空”[...
                            
                            
                                分类:
其他好文   时间:
2014-05-28 02:09:50   
                                阅读次数:
320
                             
                         
                    
                        
                            
                            
                                改脚本查看哪些ip被占用。#!/bin/bashfor i in {1..10} 
//赋予i变量1-10do//干什么ping -c1 -w1 192.168.7.$i &> /dev/null //ping 
192.168.7.网段 每个ip1次 显示1行全输出到无底洞if [ $? -eq 0 ...
                            
                            
                                分类:
其他好文   时间:
2014-05-28 00:04:45   
                                阅读次数:
321
                             
                         
                    
                        
                            
                            
                                1 #!/bin/bash 2 #查询 3 echo -e 4 for i in `cat 
id.txt` 5 do 6 A=`mysql -h10 -uw -p2012 -Ne "select Id,Name,User_Logindate from 
info where Id=$i"`...
                            
                            
                                分类:
数据库   时间:
2014-05-27 18:08:04   
                                阅读次数:
341
                             
                         
                    
                        
                            
                            
                                #!/bin/bash# Program to output a go source file 
with user informationCURRENT_TIME=$(date +"%x %r %Z")cat << 
EOF/*	Author:$USER	CreatedAt:$CURRENT_TIME...
                            
                            
                                分类:
其他好文   时间:
2014-05-27 17:49:29   
                                阅读次数:
283
                             
                         
                    
                        
                            
                            
                                sing the emulators (adb shell sqlite3 
--version):SQLite 3.7.11:19-4.4-KitKat18-4.3-Jelly Bean17-4.2-Jelly 
Bean16-4.1-Jelly BeanSQLite 3.7.4:15-4.0.3-I...
                            
                            
                                分类:
移动开发   时间:
2014-05-27 16:06:58   
                                阅读次数:
389
                             
                         
                    
                        
                            
                            
                                #!/bin/bash# 用shell中的数组构造统计不同的组合个数.# 
下面的组合有(1,6)(3,4)(5,5)(1,6)(5,5)(4,3)(1,8)# 
不同的组合为(1,6)(3,4)(5,5)(4,3)(1,8)arrayLeft=(1 3 5 1 5 4 1)arrayRight=(6 ...
                            
                            
                                分类:
其他好文   时间:
2014-05-26 19:17:19   
                                阅读次数:
409