Entering content frame

Background documentation Method rawCmd Locate the document in the library structure

Use

$result = $session->rawCmd ($cmd_string);

rawCmd is a method of the class DBM. You use this method to send the Structure linkDBM command specified under $cmd_string to the program Structure linkDBM 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)

Result

The result of the DBM command is returned.

Example

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"

 

Leaving content frame