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 be able to run it as an executable.

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

Now you can run that file like any other executable, just type: ./filename and the script will execute.

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

Here are easy step-by-step instructions for using the OT client API.

As scripts are added to the OT distribution, they will be found here: OT Scripts Folder

Clone this wiki locally