2019年5月17日

clearLog_New_v2.sh

摘要: #!/bin/sh #@author lixiaoguang1 function deleteLog(){ local path pathList #path 为输入的路径 path=$1 #pathList为按照log条件检索的结果 pathList=$(find ${path} -name "*.log" ... 阅读全文

posted @ 2019-05-17 17:29 东京的花 阅读(123) 评论(0) 推荐(0)

clearLog 新版本

摘要: function deleteLog(){ local path pathList #path 为输入的路径 path=$1 #pathList为查找后的路径list pathList=$(find ${path} -name "*.log" -o -name "*.out" -o -name "*.log.*") ... 阅读全文

posted @ 2019-05-17 11:46 东京的花 阅读(192) 评论(0) 推荐(0)

clearLog 旧版本

摘要: function scandir() { local cur_dir parent_dir workdir workdir=$1 cd ${workdir} if [ ${workdir} = "/" ] then cur_dir="" else cur_dir=$(pwd) fi for di... 阅读全文

posted @ 2019-05-17 11:44 东京的花 阅读(174) 评论(0) 推荐(0)

remoteClearLog

摘要: clearLog(){ sshpass -p $3 scp /export/servers/clearLog_New.sh $1@$2:/export/servers sshpass -p $3 ssh $1@$2 "sh /export/servers/clearLog_New.sh $4" } clearLog $1 $2 $3 $4 阅读全文

posted @ 2019-05-17 11:44 东京的花 阅读(97) 评论(0) 推荐(0)

2016年5月12日

linux crontab

摘要: 每五分钟执行 */5 * * * * 每小时执行 0 * * * * 每天执行 0 0 * * * 每周执行 0 0 * * 0 每月执行 0 0 1 * * 每年执行 0 0 1 1 * 阅读全文

posted @ 2016-05-12 10:38 东京的花 阅读(117) 评论(0) 推荐(0)

2016年3月16日

dokuwiki 安装

摘要: 第一、安装依赖包 我们在安装DokuWiki之前,是需要安装依赖包的,这里分别从debian和centos两个系统版本进行安装。 1、Debian apt-get updateapt-get upgradeapt-get install php5 php-pear apache2 wget 2、ce 阅读全文

posted @ 2016-03-16 21:04 东京的花 阅读(517) 评论(0) 推荐(0)

2016年3月8日

linux shell 发送 http请求,curl post

摘要: 例如: 要发送的请求为: http://yus.navi.youku.com/playlog/clear.json?token=69f4ffe343520d292cd99633decd6f2c7146f47e7&_t=1457423198451 >>>>>: #自动清除播放记录# 添加到linux 阅读全文

posted @ 2016-03-08 16:04 东京的花 阅读(5606) 评论(0) 推荐(0)

2016年2月26日

[Java]读取文件

摘要: 本文转自: http://www.cnblogs.com/lovebread/archive/2009/11/23/1609122.html 1、按字节读取文件内容2、按字符读取文件内容3、按行读取文件内容 4、随机读取文件内容 public class ReadFromFile { /** * 以 阅读全文

posted @ 2016-02-26 11:38 东京的花 阅读(165) 评论(0) 推荐(0)

2015年12月3日

java操作mysql的增删改查

摘要: 转自:http://blog.csdn.net/flying_tao/article/details/6430189package com.cn.edu;import java.beans.Statement;import java.sql.Connection;import java.sql.Dr... 阅读全文

posted @ 2015-12-03 13:24 东京的花 阅读(150) 评论(0) 推荐(0)

2015年11月18日

JAVA获得0-9,a-z,A-Z范围的随机数

摘要: /*** JAVA获得0-9,a-z,A-Z范围的随机数* @param length 随机数长度* @return String*/public static String getRandomChar(int length) {char[] chr = {'0', '1', '2', '3', '... 阅读全文

posted @ 2015-11-18 19:42 东京的花 阅读(1758) 评论(0) 推荐(0)

导航