Recital

From Recital Documentation Wiki
Revision as of 09:53, 26 October 2009 by Barrymavin (Talk | contribs)

Jump to: navigation, search

The recital command is used to run recital. By default if no redirection is specified typing recital will activate the recital workbench which is a character mode IDE which you can use to develop, test and debug recital applications.

Additionally recital can be used in bash shell scripts and in shell commands which use pipes and/or redirect stdin and stdout. You can also use heredoc to denote a block of recital commands that should be executed. Note that when used in this manner, no UI commands can be executed and no user interaction is allowed.

# recital < mrprog.prg

  1. recital < myprog.prg > myoutput.txt
  2. recital > myoutput.txt <<END

use customers list structure END

  1. echo "select * from sales!customers where overdue" | recital | wc -l

Individual commands can be executed in shell scripts.

# recital -c "create database sales"

  1. recital -c "create table sales!invoices (id int, name char(25), due date)"

Expressions can be evaluated and used in shell scripts.

# VER=`recital -e "version(1)"`

You can view what command line options are available by typing:

# recital --help