Skip to content

Client side scripting

FellowTraveler edited this page Jun 20, 2012 · 8 revisions

the ot command-line utility (“ot”) has a built-in script interpreter, with access to the entire OT Client API, including the low-level and high-level APIs.

To make your own OT script, create a text file, and chmod u+x filename in order to be able to run it as an executable. Then put this shebang at the top of the file: #!/usr/bin/env ot

Now you can run that file like any other executable, just type: ./filename and the script will execute as an OT client, with full access to the OT low-level API as well as the OT high-level API

A number of sample scripts are provided, showing how easy OT has become. Even a trained monkey can write OT-based scripts and client applications!

Clone this wiki locally