Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/mcore-controld.in

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

revision 2465 by niro, Tue Sep 8 08:23:28 2015 UTC revision 2466 by niro, Tue Sep 8 08:24:07 2015 UTC
# Line 28  SQL_PASS=@lx Line 28  SQL_PASS=@lx
28  SQL_HOST=localhost  SQL_HOST=localhost
29  SQL_DB=alx_web  SQL_DB=alx_web
30    
 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 "${command}"  
 }  
   
31  #IP="192.168.0.6"  #IP="192.168.0.6"
32  PORT="6666"  PORT="6666"
33  SSLSAY_USER="foo"  SSLSAY_USER="foo"

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