Skip to content

Client side scripting

FellowTraveler edited this page Dec 14, 2011 · 8 revisions

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

Create a text file, and chmod u+x filename in order to run it as an executable.

Put this at the top of the file: #!/usr/local/bin/ot --script

Here are all the OT Client API functions you can call from inside the scripts: OT Client API

Clone this wiki locally