[root@gxapp01shells]#catcheck_saqz.sh#!/bin/bash#date=2014-09-06#istocheckthehttpstatus.ifitisnotOK,restarttheprogressrestart_saqz(){kill-9`ps-elf|grepjboss-saqz|grep-v"grepjboss-saqz"|awk-F‘‘‘{print$4}‘|tail-1`rm-rf/usr/local/jboss/server/jboss-saqz/tmp/*r..
分类:
其他好文 时间:
2014-09-16 16:05:51
阅读次数:
164
问题:MACOS安装scrapy时,安装lxml出现错误In file included from src/lxml/lxml.etree.c:232:/tmp/easy_install-O2UfP7/lxml-3.4.0/src/lxml/includes/etree_defs.h:14:10: ...
分类:
其他好文 时间:
2014-09-15 22:30:19
阅读次数:
407
[hadoop@master hive_dat]$ hive? Logging initialized using configuration in file:/app/hive/conf/hive-log4j.properties Hive history file=/tmp/hadoop/hive_job_log_hadoop_201212181216_2004188466.txt h...
分类:
其他好文 时间:
2014-09-15 17:58:19
阅读次数:
402
此脚本适用于备份指定发布目录下的目录,可适当修改运用!#!/usr/bin/envpython#backupapppythonscript.importosimporttimeimportsysnowTime=time.strftime("%Y%m%d")sourcePath=‘/home/zcb/resin-4.0.10/apps/‘backupPath=‘/home/zcb/tmp/bak‘+nowTimeifnotos.path.exists(‘/h..
分类:
编程语言 时间:
2014-09-15 11:29:19
阅读次数:
266
最近在学习POSIX thread编程,今天编译一个程序报如下错误:/tmp/ccXH8mJy.o:在函数‘main’中:deadlock.c:(.text+0xbb):对‘pthread_create’未定义的引用deadlock.c:(.text+0x134):对‘pthread_join’未定...
分类:
其他好文 时间:
2014-09-15 00:52:47
阅读次数:
237
--检查已标记为需要删除的临时表select * from T_BAS_TEMPORARYTABLENAME;--所有系统创建的临时表及视图SELECT * FROM sys.tables WHERE name LIKE 'TMP%' -- 查看系统所有表占用的空间情况create table tm...
分类:
数据库 时间:
2014-09-14 08:56:46
阅读次数:
362
C++代码 1:#include #include using namespace std;//调整堆//s:需要调整的非终端节点的位序//len:整个待排序数组的长度void HeapAdjust(int a[], int s, int len){ int tmp = a[s]; ...
分类:
其他好文 时间:
2014-09-13 22:38:16
阅读次数:
213
题目:输入两个正整数m和n,求其最大公约数和最小公倍数。def foo(a,b): if a<b: (a,b)=(b,a) aa=a; bb=b; while b!=0: tmp=a%b; a=b; b=tmp; ...
分类:
编程语言 时间:
2014-09-13 09:21:14
阅读次数:
198
举个例子:import csvimport ospath='/tmp/'file='test.csv'def generate_csv(path,file): if not os.path.exists(path): os.mkdir(path) files=os.path...
分类:
编程语言 时间:
2014-09-12 16:51:53
阅读次数:
235
#include#includeusing namespace std;struct P{ int entry; int time; bool operatorentry>n; set s; P tmp; for(int i = 0;i>tmp.entry; if(s.find(...
分类:
其他好文 时间:
2014-09-12 14:55:23
阅读次数:
163