next up previous contents index
Next: Hotkeys Up: Basic usage Previous: Aliases

Command files

        Frequently used commands, definitions or setups can be stored in so called command files. To execute them, enter their names preceded by the special character @. Be sure to be in a menu suitable for your command file. This is usually the root menu. A command file must always end with a newline.

If you do not use abbreviations shorter than 4 characters, your command files are guaranteed to work with every version of TV.

Some useful command files to compare matrices, cuts and spectra are in the directory /ikp/local/lib/tv. These are listed in table 3.3 on page [*].


 
Table 3.3: Sample command files.
cmp2cut Compare two cuts.
cmp2mat Compare two matrices.
cmp2spc Compare two spectra.
cmp3mat Compare three matrices.
cmp4mat Compare four matrices.

As an example the contents of cmp2mat will be shown here in an abbreviated form. To understand the meaning of the commands take a look at chapter 6 on page [*].

wind dele projections
wind dele comparison

cut acti 0;
cut atta matr 0 dire 0;
cut matr atta 0;
cut atta spec 4;

cut acti 1;
cut atta matr 1 dire 1;
cut matr atta 1;
cut atta spec 5

wind crea simp projections;
wind setu keyb projections;
wind show spec 0 1;
wind crea simp comparison;
wind setu keyb comparison;
wind show spec 4 5;
wind setu keyb none;
keya "C" "cut acti 0; cut crea cut; cut acti 1; cut crea cut;";

cut acti 0;
cut envi $(1);
cut acti 1;
cut envi $(2);


next up previous contents index
Next: Hotkeys Up: Basic usage Previous: Aliases
Andreas Fitzler
7/13/2000