Chinaunix首页 | 论坛 | 博客
  • 博客访问: 608410
  • 博文数量: 142
  • 博客积分: 116
  • 博客等级: 入伍新兵
  • 技术积分: 1445
  • 用 户 组: 普通用户
  • 注册时间: 2010-09-28 08:37
文章分类

全部博文(142)

文章存档

2017年(7)

2016年(57)

2015年(48)

2014年(30)

我的朋友

发布时间:2015-04-01 08:09:09

定时任务一般通过cron来调度。创建定时任务使用crontab -e,查看使用crontab -l。默认为当前用户,也可以用-u user参数指定用户。格式:分 时 日 月 星期 命令例子:    每分钟执行一次:  * * * * * uptime    每10分钟执行一次:  */10 * * * * uptime  &nb.........【阅读全文】

阅读(1131) | 评论(0) | 转发(0)

发布时间:2015-03-27 07:47:32

mysql忘记root密码时,修改my.cnf,在[mysqld]字段下添加参数  skip-grant 重启mysql  mysql -uroot修改密码 use mysql; update user set password=password('your password') where user='root';flush privileges;最后,改回my.cnf, 重启mysql......【阅读全文】

阅读(1309) | 评论(0) | 转发(0)

发布时间:2015-02-17 17:36:24

概要通过word vba读取word文档,遍历文档中的Tables,如果table的格式符合预想,则读取数据库定义信息。根据定义信息生成建表sql语句,并写出到文件。Option Explicit Public Const DEFAULT_FILEPATH = "E:\test\" Public Const DEFAULT_SQL_OUTPUT_PATH = "E:\sql" .........【阅读全文】

阅读(1588) | 评论(0) | 转发(0)

发布时间:2015-02-16 09:20:07

#include <stdio.h>#include <unistd.h>#include <stdlib.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <syslog.h>void showProcess(char *title){    .........【阅读全文】

阅读(1068) | 评论(0) | 转发(0)

发布时间:2015-02-16 09:18:51

#!/usr/bin/env pythonimport osimport syslogimport timedef showProcessInfo(msg):    # ps -eo pid,ppid,pgid,pgrp,sess,tty,tpgid,cmd    pid=os.getpid()    ppid=os.........【阅读全文】

阅读(1104) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册