摘要: find ./ -name "*gz" -mtime +5 -exec rm -fr "{}" \;find $DEST -type f -name "$TargetFilePattern" -mtime +$FileAge -exec rm {} \;注意:-name 后面参数要用双引号或单引号。... 阅读全文
posted @ 2014-08-29 15:06 haishi633 阅读(94) 评论(0) 推荐(0) 编辑
摘要: public function rules() { return array( array('bc_number,call_ring_timeout,circle_times', 'required'), array('bc_numbe... 阅读全文
posted @ 2014-08-24 21:42 haishi633 阅读(232) 评论(0) 推荐(0) 编辑
摘要: top命令top命令执行后,我们可以看到屏幕顶部有显示zombie的个数。top - 07:04:19 up 838 days, 12:37, 1 user, load average: 0.05, 0.08, 0.15Tasks: 130 total, 1 running, 129 sleep... 阅读全文
posted @ 2014-08-14 15:18 haishi633 阅读(497) 评论(0) 推荐(0) 编辑
摘要: Ibdata1过大原因:ibdata1是存储格式,在INNODB类型数据状态下,ibdata1用来存储文件的数据和索引,而库名的文件夹里的那些表文件只是结构而已。InnoDB 默认会将所有的数据库InnoDB引擎的表数据存储在一个共享空间中:ibdata1,这样就感觉不爽,增删数据库的时候,ibda... 阅读全文
posted @ 2014-08-12 16:33 haishi633 阅读(281) 评论(0) 推荐(0) 编辑
摘要: Conditional Branchingnext场景文件中必需定义 ,send, receive, pause等动作执行完成后将会跳转到next参数所指定的部分。testtest="m"表示场景文件中选定动作执行完成只有[$m]变量有值时才能跳转到next所指定的部分。chancechance的值... 阅读全文
posted @ 2014-08-12 10:41 haishi633 阅读(161) 评论(0) 推荐(0) 编辑
摘要: $ du -sh #显示当前目录总大小,加-h提高信息的可读性1.5M .$ du --max-depth=1 -h #显示当前目录和第一层子目录的大小24K ./dir156K ./dir284K ./dir348K ./dir41.5M . 阅读全文
posted @ 2014-08-11 09:21 haishi633 阅读(175) 评论(0) 推荐(0) 编辑
摘要: find . -type f -name "tn-query*.csv" -mtime +15 -deletefind . -type f -mtime +15 -delete 阅读全文
posted @ 2014-08-11 09:13 haishi633 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 清空表格$("#tbl").find("tr:gt(0)").remove(); 阅读全文
posted @ 2014-07-30 14:29 haishi633 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 1 function array_to_csv_download($array, $filename = "export.csv", $delimiter=";") { 2 // open raw memory as file so no temp files needed, you mi... 阅读全文
posted @ 2014-07-29 15:31 haishi633 阅读(293) 评论(0) 推荐(0) 编辑
摘要: sdfsdf#CArrayDataProvider #http://www.yiiframework.com/doc/api/1.1/CArrayDataProvider/$rawData=Yii::app()->db->createCommand('SELECT * FROM tbl_user')... 阅读全文
posted @ 2014-07-25 08:27 haishi633 阅读(202) 评论(0) 推荐(0) 编辑