$result = $session->rawCmd ($cmd_string);
rawCmd is a
method of the class DBM. You use
this method to send the DBM command
specified under
$cmd_string to the program
DBM Server.
Any errors in the DBM Server do not raise an exception. The return code starts with OK if the command was executed successfully; it starts with ERR if the command failed.
(See also: Method cmd)
The result of the DBM command is returned.
Specifying a valid DBM command
$result =
session->rawCmd ('db_state');
print "$result\n";
Output:
OK
State
OFFLINE
Specifying an invalid DBM command
$result =
$session->rawCmd ('invalid command');
print "result\n";)
Output:
ERR
-24977,ERR_COMMAND: unknown command "invalid"