--- mcore-src/trunk/mcore-tools/src/include/daemon.global.class.in 2014/01/13 15:41:42 2268 +++ mcore-src/trunk/mcore-tools/src/include/daemon.global.class.in 2014/01/14 10:34:57 2269 @@ -54,29 +54,36 @@ # run_class $method $caller $argv1 $argv2 ... $argvN run_class() { - local method="$1" - local caller="$2" + local method="${GLOBAL_ARGV[0]" + local caller="${GLOBAL_ARGV[1]" local class local cmd - local argv + local i + local count if valid_session then class="${caller%.*}" cmd="${caller#*.}" - argv="${@/${caller}/}" # remove caller - argv="${argv/${method}/}" # remove method -# echo "method=${method}" -# echo "caller=${caller}" -# echo "class=${class}" -# echo "cmd=${cmd}" -# echo "argv=${argv}" + # copy GLOBAL_ARGV to CLASS_ARGV array without method and caller.class + unset CLASS_ARGV + count="${#GLOBAL_ARGV[*]}" + for (( i=2; i