exec一共有六种函数,都是以exec开头。1 int execl(const char *path, const char *arg, ...);2 int execlp(const char *file, const char *arg, ...);3 int execle(const char...
分类:
其他好文 时间:
2014-07-26 14:56:31
阅读次数:
232
EXEC sp_configure 'show advanced options', 1; RECONFIGURE;EXEC sp_configure 'xp_cmdshell', 1; EXEC sp_configure 'show advanced options', 0; RECONFI...
分类:
其他好文 时间:
2014-07-25 16:45:21
阅读次数:
272
$dsn = 'sqlsrv:server=.\SQLExpress;Database=thinkphp'; $user = 'admin'; $password = 'pass1234'; try { $conn = new PDO($dsn, $user,...
分类:
其他好文 时间:
2014-07-25 16:42:11
阅读次数:
268
A method for browsing Internet of things (IoT) and an apparatus using the same are provided. In the method for browsing IoT, when a mobile device exec...
分类:
移动开发 时间:
2014-07-25 02:28:54
阅读次数:
434
进程和程序
exec和fock简述
exec系统调用从指定程序重新初始化进程,虽然进程还在,但程序已经改变了。
fock系统调用仅通过复制指令、用户数据和系统数据段来创建从现存进程克隆的新进程,该新进程不是从程序初始化得来的,所以旧进程和新进程执行同样的指令。
除启动UNIX内核本身外,exec是程序在UNIX上获得执行的唯一方法...
分类:
系统相关 时间:
2014-07-24 23:35:33
阅读次数:
597
在Android中想要进行Ping,在不Root机器的情况下似乎还只能进行底层命调用才能实现。
因为在Java中要进行ICMP包发送需要Root权限。
于是只能通过创建进程来解决了,创建进程在Java中有两种方式,分别为:
1. 调用ProcessBuilder的构造函数后执行start()
2. 用Runtime.getRuntime().exec()方法执行
经过使用...
分类:
移动开发 时间:
2014-07-24 23:34:33
阅读次数:
305
/**
* 授权
*/
EXEC sp_configure 'show advanced options',1;
go
reconfigure;
go
exec sp_configure 'xp_cmdshell',1;
go
reconfigure;
go
/**导入指定表的文本文件*/
EXEC master..xp_cmdshell 'bcp dbname..tablename in...
分类:
数据库 时间:
2014-07-24 23:32:13
阅读次数:
374
Hive 命令行
Hive 命令行示例
?从命令行执行指定的sql语句
?$HIVE_HOME/bin/hive -e 'select a.col from tab1 a'
?以指定的hive环境变量执行指定的sql语句
?$HIVE_HOME/bin/hive -e 'select a.col from tab1 a' -hiveconf hive.exec.scr...
分类:
其他好文 时间:
2014-07-24 23:11:14
阅读次数:
256
首先声明一下,这篇文章是我的原创,但是,这些数据不是我总结出来的,大家可以搜索下“百度工程师HDK”,这些数据是他提供的,我只是给一个总结,因为他那篇文章很长,我这里提炼了几点要点。
要了解函数的性能,首先要知道函数的执行流程,它首先通过scanning被转化为语言片段(tokens),然后通过parsing为简单有意义的表达式,然后compile(编译)为Opcode,最后exec...
分类:
Web程序 时间:
2014-07-24 10:34:51
阅读次数:
267
1.配置环境
1.引入jar包:hive-exec-0.8.0.jar 和 hadoop-core-0.20.2.jar
2.编写udf函数
1.extends UDF
2.重新定义UDF的evaluate函数。
package com.qunar.hiveudf;
import java.text.SimpleDateFormat;
import java.util.Calen...
分类:
其他好文 时间:
2014-07-23 20:58:47
阅读次数:
217