摘要: #!/bin/sh#判断文件和文件夹是否存在type=$1name=$2isCreate=$3isDelete=$4if [ "$type" = "0" ];thenif [ -f $name ];then echo "file存在"if [ $isDelete = "true" ]; then rm $name fielse echo "file不存在"if [ $isCreate = "true" ]; then touch $name fifielif [ " 阅读全文
posted @ 2012-05-03 11:00 good fortune 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 今天有空看下memached,结果发现我的电脑不行。必须要重新编译,但是怕麻烦就找到了这个。couchbasehttp://www.couchbase.com/download 阅读全文
posted @ 2012-05-03 09:31 good fortune 阅读(264) 评论(0) 推荐(0) 编辑
摘要: ftp读取多个文件时,必须读取一次,登录一次。下面是inputStream = this.ftpClient.retrieveFileStream(name);retrieveFileStream方法注释。The InputStream itself will take care of closing the parent data connection socket upon being closed.for (String name : names) {ftpLogin();inputStream = this.ftpClient.retrieveFileStream(name);} 阅读全文
posted @ 2012-05-03 09:29 good fortune 阅读(195) 评论(0) 推荐(0) 编辑