随笔分类 -  linux

只有注册用户登录后才能阅读该文。
posted @ 2017-11-15 17:57 风猴蓝魔 阅读(3) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2013-11-22 18:20 风猴蓝魔 阅读(249) 评论(4) 推荐(1) 编辑
摘要:#!/bin/bash# HJ test trigger filePATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/binexport PATHdirectory=/home/houjiao/test/filelist=`ls $directory`#for file in $filelistfor file in *.datdo exist=$(lsof ${directory}${file}) if [ $? ] && [ `echo $file |grep 'log'` 阅读全文
posted @ 2013-06-07 17:43 风猴蓝魔 阅读(190) 评论(0) 推荐(0) 编辑
摘要:此文是摘自别人的。1.assert()http://blog.chinaunix.net/u/16292/showart_391324.htmlassert宏的原型定义在<assert.h>中,其作用是如果它的条件返回错误,则终止程序执行,原型定义:#include <assert.h>void assert( int expression );assert的作用是现计算表达式expression,如果其值为假(即为0),那么它先向stderr打印一条出错信息,然后通过调用abort来终止程序运行。请看下面的程序清单badptr.c:#include <stdio 阅读全文
posted @ 2013-01-16 20:27 风猴蓝魔 阅读(2027) 评论(0) 推荐(0) 编辑