新建一个visualC++->win32项目点击生成->配置管理器新建一个64位debug位平台hello.cpp程序代码如下:#include"stdafx.h"
#include"jni.h"
#include"com_magc_jni_HelloWorld.h"
JNIEXPORTvoidJNICALLJava_com_magc_jni_HelloWorld_DisplayHello
(JNIEnv*env,jobjectobj..
分类:
其他好文 时间:
2015-05-18 21:11:06
阅读次数:
2416
ThinkPHP 类似Yii的Gii生成Model的功能。自动生成ThinkPhp 3.1 的基础模型.。 1 #!/usr/bin/env php 2 getFieldString(), 49 $Tii->getTableName(), 50 $Tii->getTrueTabl...
分类:
Web程序 时间:
2015-05-18 15:57:53
阅读次数:
275
问题描述:
写了一个exp的脚本,放到了oracle的crontab中,但一直不能执行。
问题原因
crond默认不会加载该用户的.profile和.bashrc文件,它的执行环境只能有一些最基本的环境变量,因此exp的命令因找不到而不执行。
验证过程
写了一个脚本,赋予777权限
[root@DBBANK ~]# cat /tmp/wjf/env
env |wall
分别把这个脚本加...
分类:
其他好文 时间:
2015-05-18 10:58:11
阅读次数:
161
#!/usr/bin/env pythonimport osimport sysdef text_with_color(color,text): def base(color,text): color_code = {"black":30, "red":31...
分类:
编程语言 时间:
2015-05-15 15:24:01
阅读次数:
230
if (YII_ENV_DEV) { // configuration adjustments for 'dev' environment $config['bootstrap'][] = 'debug'; $config['modules']['debug'] = 'yii\de...
分类:
其他好文 时间:
2015-05-14 20:11:12
阅读次数:
211
#!/usr/bin/env python3#file name: threadtest.py# -*- coding:utf8 -*-# -version:1.0-import threading, time, socketclass Server(): '''接收消息的服务器类''' def _...
分类:
编程语言 时间:
2015-05-14 13:54:30
阅读次数:
199
win(python2.7)下:执行此文件 1 #!/usr/bin/env python 2 # encoding:utf-8 3 4 # 5 # script to register Python 2.0 or later for use with win32all 6 # and other....
分类:
编程语言 时间:
2015-05-13 12:24:10
阅读次数:
226
类中三种函数的应用#!/usr/bin/env python
# -*- coding: utf-8 -*-class TClassStatic(object):
def __init__(self, data):
self.data = data def printself(*arg):
# for item in arg:
#...
分类:
编程语言 时间:
2015-05-13 10:14:04
阅读次数:
137
可以解析这样的命令./cron_ctrl jobname1 --stop ;./cron_ctrl jobname1 --start;./cron_ctrl jobname1 --list#!/usr/bin/env pythonimport osimport sysfrom optparse im...
分类:
编程语言 时间:
2015-05-11 23:54:09
阅读次数:
155
基本用法数据结构classDBImpl : public DB{private: struct CompactionState; struct Writer;// Information kept for every waiting writer Env* const env_; // 文件,目.....
分类:
数据库 时间:
2015-05-11 19:28:41
阅读次数:
231