Contents:
Command line usage: oaa_shell Option_or_Request*
Standard OAA options:
-oaa_connect Address, -setup_file Path, -on_connect_exception Action
Options done AFTER executing commandline requests:
"-s" Get a single request from stdin, execute it, and exit
Requests (without dashes):
trace, trace_off, com_trace, com_trace_off,
a call to an OAA 2 Prolog library procedure,
a goal to be solved.
-2: Unable to connect to facilitator
-1: Error or abnormal condition at exit; not all requests completed
0, and the last request executed has no solution count: Failure
1, and the last request executed has no solution count: Success
0 or greater, and the last request executed has a solution count:
the solution count
% oaa_shell com_trace
% oaa_shell -oaa_connect "tcp('somehost.ai.sri.com',3600)" com_trace
% oaa_shell "oaa_Solve(agent_data(A,B,C,D,E,F), [])"
-- A listing of solutions (agent_data facts) is printed --
% echo $status
-- Reports the number of solutions that were just printed --
(echo $status works under Unix.)
% oaa_shell "agent_data(A,B,C,D,E,F)"
% oaa_shell "agent_data(A,B,C,D,database,F)"
-- A listing of solutions (agent_data facts) is printed --
% echo "agent_data(A,B,C,D,database,F)" | oaa_shell -s
-- A listing of solutions (agent_data facts) is printed --
Copyright (c) 2001 by SRI International