hello

来自「开源CORBA中间件」· 代码 · 共 48 行

TXT
48
字号
#!/bin/shMICORC=/dev/nullexport MICORC# run Naming Serviceecho "Starting Naming Service ..."rm -f nsd.iornsd --ior nsd.ior &nsd_pid=$!trap "kill $nsd_pid > /dev/null 2> /dev/null" 0# wait for Naming Service to startfor i in 0 1 2 3 4 5 6 7 8 9 ; do	if test -r nsd.ior ; then break ; else sleep 1 ; fidone# start Server Activatorecho "Starting MicoCCM Daemon ..."rm -f ccmd.iormico-ccmd --ior ccmd.ior &server_pid=$!trap "kill $nsd_pid $server_pid > /dev/null 2> /dev/null" 0# wait for Server Activator to startfor i in 0 1 2 3 4 5 6 7 8 9 ; do	if test -r ccmd.ior ; then break ; else sleep 1 ; fidoneecho "Loading HelloWorld component ..."ccmload -ORBInitRef NameService=file://`pwd`/nsd.ior --ccmd file://`pwd`/ccmd.ior --ns HelloHome -v HelloHome ./hello.so# run Clientecho "Running Client ..."./client -ORBInitRef NameService=file://`pwd`/nsd.ior

⌨️ 快捷键说明

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