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 2465 by niro, Tue Sep 8 08:23:28 2015 UTC revision 2466 by niro, Tue Sep 8 08:24:07 2015 UTC
# Line 15  import_resource() Line 15  import_resource()
15    
16   mysql_insert "${table}",serial="${serial}","${resource}"="${value}"   mysql_insert "${table}",serial="${serial}","${resource}"="${value}"
17  }  }
18    
19    control_client()
20    {
21     local serial="$1"
22     local command="${@/$1/}"
23     local IP
24    
25     IP=$(mysqldo "select ip from state_connected where serial='${serial}'")
26     if [[ -z ${IP} ]]
27     then
28     echo "no ip found for client '${serial}'"
29     return 1
30     fi
31    
32     nsslsay "${command}"
33    }

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