Chinaunix首页 | 论坛 | 博客
  • 博客访问: 735665
  • 博文数量: 696
  • 博客积分: 15910
  • 博客等级: 上将
  • 技术积分: 7345
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-03 14:34
文章分类

全部博文(696)

文章存档

2012年(263)

2011年(394)

2010年(39)

分类: LINUX

2012-09-20 20:27:54

function fn_main() 
{
local REF_INCLUDE_EXCLUDE_ROOT
local REF_INCLUDE_FILE
local REF_EXCLUDE_FILE
local REF_BUFFER_PATH 
local REF_BAK_SERVER_IP
local REF_BAK_REMOTE_FOLDER
local REF_ECOO_NO_BSS

CONFIG_FILE=`echo "$1" | sed 's/\\\/\//g'`

PRINT_LOG "INFO" "Chech parameters..."
fn_get_config "${TMP_CONFIG_FILE}" REF_INCLUDE_EXCLUDE_ROOT REF_INCLUDE_FILE REF_EXCLUDE_FILE\
REF_BUFFER_PATH REF_BAK_SERVER_IP REF_BAK_REMOTE_FOLDER REF_ECOO_NO_BSS
    
    echo ${REF_INCLUDE_EXCLUDE_ROOT}
    echo ${REF_INCLUDE_FILE}
    echo ${REF_EXCLUDE_FILE}
}

function fn_get_config()
{
    local TMP_CONFIG_FILE=$1
    
INCLUDE_EXCLUDE_ROOT=`fn_get_value "${TMP_CONFIG_FILE}" "INCLUDE_EXCLUDE_ROOT"`
INCLUDE_FILE=`fn_get_value "${TMP_CONFIG_FILE}" "INCLUDE_FILE"`
EXCLUDE_FILE=`fn_get_value "${TMP_CONFIG_FILE}" "EXCLUDE_FILE"`
BUFFER_PATH=`fn_get_value "${TMP_CONFIG_FILE}" "BUFFER_PATH"`
BAK_SERVER_IP=`fn_get_value "${TMP_CONFIG_FILE}" "BAK_SERVER_IP"`
BAK_REMOTE_FOLDER=`fn_get_value "${TMP_CONFIG_FILE}" "BAK_REMOTE_FOLDER"`
BAK_ECOO_NO_BSS=`fn_get_value "${TMP_CONFIG_FILE}" "ECOO_NO_BSS"`
    
eval $2="${INCLUDE_EXCLUDE_ROOT}"
eval $3="${INCLUDE_FILE}"
eval $4="${EXCLUDE_FILE}"
eval $5="${BUFFER_PATH}"
eval $6="${BAK_SERVER_IP}"
eval $7="${BAK_REMOTE_FOLDER}"
eval $8="${BAK_ECOO_NO_BSS}"
return 0;
}
阅读(759) | 评论(0) | 转发(0) |
0

上一篇:spring下载

下一篇:Java对cookie的支持

给主人留下些什么吧!~~