next up previous 222
Next: Pairing criteria
Up: Running catpair
Previous: Retaining specified columns


Running from a script

Often it is more convenient to run catpair from a prepared script rather than answering the prompts interactively. This end is simply achieved using Unix's input redirection mechanism. Simply enter the responses to the various prompts into a text file, in the correct order, using a text editor. Then type:

catpair < script_file

where script_file is the name of the file you have created. Figure [*] shows an annotated example catpair script for pairing with Cartesian coordinates. This script is available as file:

/star/share/cursa/catpair_cart.script

An example script showing pairing with spherical-polar coordinates is available as file:

/star/share/cursa/catpair_sphplr.script

It may be convenient to use these scripts as starting points for developing your own scripts.

Figure: An annotated example catpair script
\begin{figure}\par
\begin{center}
\begin{tabular}{ll}
{\tt prim} & primary catal...
...t) briefly
describes the corresponding entry.
\end{quote}\par\par
\end{figure}



next up previous 222
Next: Pairing criteria
Up: Running catpair
Previous: Retaining specified columns

CURSA Catalogue and Table Manipulation Applications
Starlink User Note 190
A.C. Davenhall
4th November 2001
E-mail:starlink@jiscmail.ac.uk

Copyright © 2001 Council for the Central Laboratory of the Research Councils