Debian Codegraph @

whelp/Tace.html

raw
1 <!-- $Id: Tace.html,v 1.2 1999/06/25 14:50:41 fw Exp $ -->
2 <HEAD>
3 <TITLE> ACEDB user guide: tace </TITLE>
4 </HEAD>
5
6 <BODY BGCOLOR=#ffffff>
7
8 <H1> Acedb user guide: tace </H1>
9
10 <STRONG>tace</STRONG> is a command line interface to acedb.
11 To start tace, set the environment variable ACEDB to point
12 to your database directory and simply type
13 <PRE>
14 % tace
15 </PRE>
16 You can also override the environment setting and specify the
17 database directory as the first command line argument :
18 <PRE>
19 % tace /home/wormdb
20 </PRE>
21
22 The program will then open up the database and show the tace prompt
23 "acedb&gt;". The fundamental concept in tace is the notion of an
24 <B>active KeySet</B>. A KeySet is a list of objects, which can be
25 operated upon. The user could use a query to select a set of objects
26 for the active keyset and then apply an edit command to all those
27 objects.<P>
28 The next chapter list the possible commands that can be typed
29 after the prompt.<BR>
30 (command options inside [brackets] are optional, the vertical bar '|' indicates a choice of possible options, words in <I>italics</I> are values specified by the user.)<BR>
31 All commands can be abbreviated to a certain point where they become
32 ambigious. Command are not case-sensitive.
33
34 <H2>Commands</H2>
35
36
37 <DL>
38 <DT><B>Quit</B></DT>
39 <DD>Exits the program without saving any changes.</DD>
40 <P>
41
42 <DT><B>Classes</B></DT>
43 <DD>Give a list of all the visible class names and how many objects they contain. <BR>
44 See the document on <A HREF="Class_Configuration.html">Class
45 Configuration</A> to learn how the visibility of classes
46 can be configured.
47 </DD>
48 <P>
49
50 <DT><B>Show [-h | -a | -p | -j] [-T] [-b <I>begin</I>] [-c <I>max</I>] [-f <I>filename</I>] [-C] [[-t] <I>tag</I>] </B></DT>
51 <DD>
52 Shows the objects in the active set.<BR>
53 -T shows time stamps<BR>
54 -C ignore comments</BR>
55 </DD>
56 <P>
57
58 <DT><B>Table-Maker <I>options</I></B></DT>
59 <DD>This command has a number of options that can be used to load/execute/manipulate
60 <A HREF="Table_Maker.html">table-maker</A> definitions. The order of
61 options is important, not all options are valid with every mode of use.
62
63 <P><B>-active</B> : run the query over the active keyset
64 rather than the whole class of column 1 of the definitions.</P>
65
66
67 <P><B>-j | -p | -h | -a</B> : use either of these options to display the
68 result table in one of the formats in the familiar choice of
69 Java/Perl/Human-readable/Acedb respectively</P>
70
71 <P><B>-o <I>outfile</I></B> : the result table will be written
72 to the specified file, rather than to the screen.</P>
73
74 <P><B>-b <I>start</I></B> : specify the start-point in the range
75 of the calculation over the first column.</P>
76
77 <P><B>-c <I>max</I></B> : maximum number of objects to be included
78 in the calculation of the first column. If there are 200
79 objects in column 1 you can range over objects 100 to 150
80 using the options <CODE>-b 100 -c 50</CODE></P>
81
82 <P><B>-title</B> : if this option is set, the names of column headers
83 are also printed in the output.</P>
84
85 <P><B>-s <I>objname</I></B> : this options saves a table-maker definition
86 to the database. The definitions have to be read from a file
87 or from an object. No calculations are performed, the program
88 will simply report back saying &quot;<CODE>Table saved</CODE>&quot;.
89 The object is written to Class <B>Table</B> under the given name.
90 You need write access for this function to work.</P>
91
92 <P>You can use one of three ways to specify which table-definitions to load.</P>
93
94 <P><B>[-f] <I>filename</I></B> : load the definitions from a file.
95 Such files would typically be created by the function "Export defs"
96 in Table-Maker. The -f is optional. The <I>filename</I> will be
97 treated relative to the current working directory.
98 Command line parameters (see below) can be specified with this option.</P>
99
100 <P><B>-n <I>objname</I></B> : read the definitions from an existing object
101 in the database. The object with the name <I>objname</I> has to exist
102 in class <B>Table</B>. This is convienient way to access pre-defined
103 definitions.
104 Command line parameters (see below) can be specified with this option.</P>
105
106 <P><B>= <I>def_command<CODE>\n</CODE>def_command<CODE>\n</CODE>def_command</I></B> :
107 a mode of loading definitions that is probably reserved for automatic scripts etc.
108 The entire edefinition can be specified literally on the command line.
109 The <I>def_commands</I> are separated by the escaped line-feed characters '\n'
110 The commands would be each line from the result of showing the Table-object
111 in ace-format (see show -a). As the rest of line is taken as definitions
112 no command line parameters can be substituted.</P>
113
114
115 <P>The rest of the line is taken as command line parameters. Such parameters are used
116 to substitue all %1, %2 %3 etc.. substitution directions in the text of the definitions.
117 If a parameter should contain multiple words is has to be quoted (i.e. object names containing spaces).
118 If the definitions contain parameters %1 and %2 the following command line can be issued :</P>
119
120 <P><CODE>acedb> table-maker wquery/example.def "aa c" dddd</CODE></P>
121
122 <P>which will replace the directive %1 with 'aa c' and %2 with 'dddd'. Without
123 the quotes, dddd would have been treated as a third parameter.</P>
124
125 <P>The definitions are then parsed and executed, and the resulting table
126 is output in the specified format. At the end of the table a comment
127 states how many lines the table contains. The objects in the first column
128 become the new active keyset, so another column will state how many
129 different object are contained in column 1, before the "acedb&gt;" prompt returns
130
131 </DD>
132
133
134 </DL>
135
136 <P>
137
138 to <a href="TOC.html">Table of Contents</a><p>
139
140 last edited: June 1999<p>
141
142
143 </BODY>
144
145