Commands

Table 2.21. Commands

commanddescriptionexample
eval(StringInstruction);evaluate an expression and return result. Deprecated, use exec.eval( "a=1;" );
exec(StringInstruction);execute an expressionexec( " echo(\"test\"); " );
cpuload();return cpu load, value between 0 and 1 (1 for full)
freemem();return free memory, value in bytes
power();return power status, 0 if empty, 1 when full
ping; return "pong" when executedjust test the connection alive state
connections;list all connections to the server 
killall s;Stop all code of the named connectionkillall U12345678;
disconnect s;disconnect connections named "s"s = "Uxxxxxx";
quit;close current connection 
shutdown;server quit, this shutdown the server and so kill all connections 
reboot;reboot robot 
reset;reset the connection, by loading URBI.INI / CLIENT.INI 
commands;return debug informations 
setpriority 20;set priority of a connection, in URBIRT.INI file