Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/include/control.global.class.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2466 by niro, Tue Sep 8 08:24:07 2015 UTC revision 2472 by niro, Tue Sep 8 08:35:57 2015 UTC
# Line 20  control_client() Line 20  control_client()
20  {  {
21   local serial="$1"   local serial="$1"
22   local command="${@/$1/}"   local command="${@/$1/}"
23   local IP   local SSLSAY_IP
24     local SSLSAY_PORT
25    
26   IP=$(mysqldo "select ip from state_connected where serial='${serial}'")   SSLSAY_IP=$(mysqldo "select ip from state_connected where serial='${serial}'")
27   if [[ -z ${IP} ]]   if [[ -z ${SSLSAY_IP} ]]
28   then   then
29   echo "no ip found for client '${serial}'"   echo "no ip found for client '${serial}'"
30   return 1   return 1
31   fi   fi
32    
33   nsslsay "${command}"   SSLSAY_PORT="6666"
34     nsslsay_fingerprint "${command}"
35  }  }

Legend:
Removed from v.2466  
changed lines
  Added in v.2472