--- mcore-src/trunk/mcore-tools/src/include/control.global.class.in 2015/09/08 08:23:28 2465 +++ mcore-src/trunk/mcore-tools/src/include/control.global.class.in 2015/09/08 08:24:50 2467 @@ -15,3 +15,19 @@ mysql_insert "${table}",serial="${serial}","${resource}"="${value}" } + +control_client() +{ + local serial="$1" + local command="${@/$1/}" + local IP + + IP=$(mysqldo "select ip from state_connected where serial='${serial}'") + if [[ -z ${IP} ]] + then + echo "no ip found for client '${serial}'" + return 1 + fi + + nsslsay_fingerprint "${command}" +}