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 2467 by niro, Tue Sep 8 08:24:50 2015 UTC revision 2468 by niro, Tue Sep 8 08:25:33 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    
25   IP=$(mysqldo "select ip from state_connected where serial='${serial}'")   SSLSAY_IP=$(mysqldo "select ip from state_connected where serial='${serial}'")
26   if [[ -z ${IP} ]]   if [[ -z ${SSLSAY_IP} ]]
27   then   then
28   echo "no ip found for client '${serial}'"   echo "no ip found for client '${serial}'"
29   return 1   return 1

Legend:
Removed from v.2467  
changed lines
  Added in v.2468