⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 megaco_session

📁 一个Megaco实现源代码
💻
字号:
#!/bin/sh# Get the name of the programprogram=`echo $0 | sed 's#.*/##g'`# Local varsmp_path=" "start_mf=" "config=" "usage="\Usage: $program [options]This shell script is used to start the megaco_session factory node.In this node both the megaco and the megaco_session applicationswill be started. Optionally megaco_filter (et) will also be started.As per default the erlang node will be named with '-sname megaco_session' (i.e. short name).Options: -h                display this help and exit -mf               start megaco_filter (et) also. -mp <path>        path to the megaco ebin directory in case megaco                    is installed outside of OTP. -name <name>      create long node name with <name>                   the host name part of the node name will be fully                    qualified  -sname <name>     create short node name with <name>  -config <config>  config file, <config>.config, for the session node --                everything after this is just passed on to erl"while test $# != 0; do    # echo "Value: $1"    case  $1 in	-h)     	    echo "$usage" ; 	    exit 0;;	-mf)    	    start_mf="-s megaco_filter " ; 	    shift ;;	-mp)    	    mp_path="-pa $2"; 	    shift ; shift ;;	-name)  	    if test "x$name_opt" != "x"; then		echo "name option already set to '$name_opt' => ignoring '$1'"	    else		name_opt="-name $2"	    fi;	    shift; shift;;	-sname) 	    if test "x$name_opt" != "x"; then		echo "name option already set to '$name_opt' => ignoring '$1'"	    else		name_opt="-sname $2"	    fi;	    shift; shift;;	-config)	    config="-config $2";	    shift; shift;;	--)	    shift ;	    break;;	*)       	    echo "unknown option: $1"; 	    echo "$usage" ; 	    exit 0    esacdoneif test -z "$name_opt"; then    name_opt="-sname megaco_session"fiset -xerl \  $mp_path \  -pa ../../ebin \  $name_opt \  $start_mf \  $config \  -s megaco \  -s megaco_session \  -boot start_sasl -sasl errlog_type error \  $*

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -