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

📄 createextns.sh

📁 Pegasus is an open-source implementationof the DMTF CIM and WBEM standards. It is designed to be por
💻 SH
字号:
if [ -z "$PEGASUS_HOME" ]; then   echo Pegsus environment not set   exit 5firdir=$PEGASUS_HOME/repositorywhile getopts "n:p:l:" flag; do  if [ "$flag" = "?" ]; then     error="?"  elif [ "$flag" = "n" ]; then    ns=$OPTARG    nsd=${ns//\//#}  elif [ "$flag" = "p" ]; then     pns=$OPTARG     pnsd=${pns//\//#}  elif [ "$flag" = "l" ]; then     loc=$OPTARG     logd=${loc//:/#}  fidoneif [ -z "$ns" ]; then   echo Required parameter -n missing   error="?"fiif [ -n "$error" ]; then   echo Usage: CreateExtNs -n namespace-name [-p parent-namespace ] [-l remote-location ]   exit 5fiif [ ! -d "$PEGASUS_HOME/repository" ]; then   echo $PEGASUS_HOME/repository directory not found   exit 5fiif [ -e "$rdir/$nsd" ]; then   echo Namespace $ns already exists   exit 5fiif [ -n "$pns" ]; then   if [ ! -e "$rdir/$pnsd" ]; then      echo Parent namespace $pns does not exist      exit 5   fifimkdir $rdir/$nsdmkdir $rdir/$nsd/classesmkdir $rdir/$nsd/instancesmkdir $rdir/$nsd/qualifiersif [ -n "$ns" ]; then   mkdir $rdir/$nsd/SRS$pnsdfiif [ -n "$loc" ]; then   mkdir $rdir/$nsd/r10$logdfi

⌨️ 快捷键说明

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