经常用到Runtime的exec方法,记录一下标准用法,便于以后复制代码。 Process process; String cmd = "cat /sys/devices/virtual/mxc_edid_class/mxc_edid_dev/timing"; ...
分类:
编程语言 时间:
2014-08-31 01:36:40
阅读次数:
223
1 bundle exec rspec spec/ 2 /home/wuxj/Prac/rrprac/sample_app/spec/spec_helper.rb:20:in `block in ': uninitialized constant Capybara (NameError) 3 ...
分类:
其他好文 时间:
2014-08-29 20:00:28
阅读次数:
370
修改tomcat/conf/server.xml配置文件。<Executorname="tomcatThreadPool"namePrefix="catalina-exec-"maxThreads="500"minSpareThreads="400"/><Connectorexecutor="tomcatThreadPool"port="80"protocol="HTTP/1.1"connectionTimeout="20000"enableLookups="false"red..
分类:
其他好文 时间:
2014-08-29 16:22:18
阅读次数:
155
Process process = Runtime.getRuntime().exec("c:\\test.bat"); // 执行一个系统命令 InputStream fis = process.getInputStream(); BufferedReader br = new BufferedReader(new InputStreamReader(fis)); Stri...
分类:
编程语言 时间:
2014-08-28 02:11:38
阅读次数:
263
1. 在Sql管理器中,在具体表的右键菜单中,Full-Text index(全文检索) 项是灰色的; 解决办法: EXEC sp_fulltext_database 'enable' 2. 全文搜索使用方法: 2.1. select * from tablename where CONTAINS(...
分类:
数据库 时间:
2014-08-27 20:23:28
阅读次数:
290
1.事务 1.1 MULTI和EXEC命令 发送MULTI命令,声明事务;EXEC执行事务 Redis不支持事务回滚 redis?127.0.0.1:6379>?SET??key?1
OK
redis?127.0.0.1:6379>?SET?key?2
OK
redis?127.0.0.1:6379>?SADD?k...
分类:
其他好文 时间:
2014-08-27 13:14:28
阅读次数:
210
转自:http://www.cnblogs.com/xbf321/archive/2008/11/02/1325067.html摘要1,EXEC的使用2,sp_executesql的使用 MSSQL为我们提供了两种动态执行SQL语句的命令,分别是EXEC和sp_executesql;通常,sp_ex...
分类:
数据库 时间:
2014-08-27 12:44:29
阅读次数:
358
JS 验证正则表达式-常用方法javascript所支持的正则表达式常用的六种方法:test(),exec(),match(),search(),replace()和split(). 其中前两者属于RegExp类的方法后,其余属于string类的方法.test()方法:如果给定的字符串匹配该正则的模...
分类:
Web程序 时间:
2014-08-27 12:21:52
阅读次数:
293
1,创建工作目录mkdir/usr/local/proxy/viproxy#!/bin/bashTmpfile=`mktemp`User=$USERIp=${SSH_CLIENT%%*}Date="`date+%Y-%m-%d`"Logfile="/var/log/myaudit/${Date}_${User}_$Ip.log"exec/usr/bin/script-a-f-q$Logfile2修改/etc/profilevi/etc/profile/usr/local/proxy/proxy..
分类:
系统相关 时间:
2014-08-26 19:54:47
阅读次数:
213
Linux中find常见用法示例·findpath-option[-print][-exec-okcommand]{}\;find命令的参数;pathname:find命令所查找的目录路径。例如用.来表示当前目录,用/来表示系统根目录。-print:find命令将匹配的文件输出到标准输出。-exec:find命令对匹配的文件执行该参数所给出的shel..
分类:
系统相关 时间:
2014-08-26 19:49:07
阅读次数:
376