2005-02-15 08:05:26 +05:30
|
|
|
<appendix id="append-cmdline">
|
|
|
|
|
2003-12-03 08:26:43 +05:30
|
|
|
<!--
|
|
|
|
User Manual for Gramps - a GTK+/GNOME based genealogy program
|
|
|
|
|
2005-02-15 08:05:26 +05:30
|
|
|
Copyright (C) 2003-2005 Alexander Roitman
|
|
|
|
|
|
|
|
This document is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This document is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
2003-12-03 08:26:43 +05:30
|
|
|
|
2005-02-15 08:05:26 +05:30
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2003-12-03 08:26:43 +05:30
|
|
|
-->
|
|
|
|
|
|
|
|
<!-- $Id$ -->
|
|
|
|
|
2003-09-23 06:18:01 +05:30
|
|
|
<!-- =============== Appendices Subsection ================ -->
|
|
|
|
<title>Command line reference</title>
|
2003-09-28 04:31:41 +05:30
|
|
|
<para>This appendix provides the reference to the command line
|
2003-09-23 06:18:01 +05:30
|
|
|
capabilities available when launching &app; from the terminal. </para>
|
|
|
|
|
2005-05-11 19:34:47 +05:30
|
|
|
<note><para>&app; was designed to be an interactive
|
2003-09-23 06:18:01 +05:30
|
|
|
program. Therefore it uses graphical display and cannot run from the
|
|
|
|
true non-graphical console. It would take an enormous amount of effort
|
|
|
|
to enable it to run in a text-only terminal. This is why the set of
|
|
|
|
command line options does not aim to completely get rid of dependency
|
2003-09-28 04:31:41 +05:30
|
|
|
on the graphical display. Rather, it merely makes certain (typical) tasks
|
|
|
|
more convenient. It also allows one to execute these tasks from the scripts.
|
2003-09-23 06:18:01 +05:30
|
|
|
However, the graphical display must be accessible at all times!
|
2005-05-11 19:34:47 +05:30
|
|
|
</para></note>
|
2003-09-23 06:18:01 +05:30
|
|
|
|
2005-05-11 19:34:47 +05:30
|
|
|
<tip><para>To summarize, the use of the command line options provides
|
2003-09-23 06:19:35 +05:30
|
|
|
non-interactive behavior, but does not get rid of graphical display
|
2003-09-23 06:18:01 +05:30
|
|
|
dependency. Take it or leave it!
|
2005-05-11 19:34:47 +05:30
|
|
|
</para></tip>
|
2003-09-23 06:18:01 +05:30
|
|
|
|
|
|
|
|
2005-02-15 08:05:26 +05:30
|
|
|
<sect1 id="cmdline-options">
|
2003-09-23 06:18:01 +05:30
|
|
|
<title>Available options</title>
|
|
|
|
|
2005-05-11 19:34:47 +05:30
|
|
|
<para>This section provides the reference list of all command line
|
|
|
|
options available in &app;. If you want to know more than just
|
|
|
|
a list of options, see next sections: <xref linkend="cmdline-operation"/>
|
|
|
|
and <xref linkend="cmdline-examples"/>.
|
2003-09-23 06:18:01 +05:30
|
|
|
</para>
|
|
|
|
|
2005-05-11 19:34:47 +05:30
|
|
|
<sect2 id="cmdline-opt-format"><title>Format options</title>
|
|
|
|
<para> The format of any file destined for opening, importing,
|
|
|
|
or exporting can be specified with the
|
|
|
|
<command>-f <replaceable>format</replaceable></command>
|
|
|
|
option. The acceptable <replaceable>format</replaceable> values
|
|
|
|
are listed below.</para>
|
2003-09-23 06:18:01 +05:30
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
|
2005-05-11 19:34:47 +05:30
|
|
|
<varlistentry><term>grdb</term>
|
2003-09-23 06:18:01 +05:30
|
|
|
<listitem><para> &app; database. This format is available
|
2005-05-11 19:34:47 +05:30
|
|
|
for opening, import, and export. When not specified, it can be
|
|
|
|
guessed if the filename ends with .grdb
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
|
|
|
<varlistentry><term>gramps-xml</term>
|
|
|
|
<listitem><para> &app; XML database. This format is available
|
|
|
|
for opening, import, and export. When not specified, it can be
|
|
|
|
guessed if the filename represents a directory.
|
2003-09-23 06:18:01 +05:30
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
|
|
|
<varlistentry><term>gedcom</term>
|
|
|
|
<listitem><para> GEDCOM file. This format is available
|
2005-05-11 19:34:47 +05:30
|
|
|
for opening, import, and export. When not specified, it can be
|
2003-09-28 04:31:41 +05:30
|
|
|
guessed if the filename ends with .ged
|
2003-09-23 06:18:01 +05:30
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
|
|
|
<varlistentry><term>gramps-pkg</term>
|
|
|
|
<listitem><para> &app; package. This format is available
|
2005-05-11 19:34:47 +05:30
|
|
|
for import and export. When not specified, it can be
|
2003-09-28 04:31:41 +05:30
|
|
|
guessed if the filename ends with .tgz
|
2003-09-23 06:18:01 +05:30
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2005-05-11 19:34:47 +05:30
|
|
|
<varlistentry><term>geneweb</term>
|
|
|
|
<listitem><para> GeneWen file This format is available
|
|
|
|
for import and export. When not specified, it can be
|
|
|
|
guessed if the filename ends with gw
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2003-09-23 06:18:01 +05:30
|
|
|
<varlistentry><term>wft</term>
|
|
|
|
<listitem><para> Web Family Tree. This format is available
|
2003-09-28 04:31:41 +05:30
|
|
|
for export only. When not specified, it can be guessed
|
2003-09-23 06:18:01 +05:30
|
|
|
if the filename ends with .wft
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
|
|
|
<varlistentry><term>iso</term>
|
|
|
|
<listitem><para> CD image. This format is available
|
2003-09-28 04:31:41 +05:30
|
|
|
for export only. It must always be specified explicitly.
|
2003-09-23 06:18:01 +05:30
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
2005-05-11 19:34:47 +05:30
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 id="cmdline-opt-open"><title>Opening options</title>
|
|
|
|
<para>There are two ways to give &app; the name of the file to
|
|
|
|
be opened: </para>
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem><para>supply bare file name</para></listitem>
|
|
|
|
|
|
|
|
<listitem><para>use the
|
|
|
|
<command>-O <filename>filename</filename></command> or
|
|
|
|
<command>-open=<filename>filename</filename></command> option
|
2003-09-23 06:18:01 +05:30
|
|
|
</para></listitem>
|
|
|
|
|
2005-05-11 19:34:47 +05:30
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<para>If the filename is given without any option flag, the attempt
|
|
|
|
to open the file will be made, and then the interactive &app; session
|
|
|
|
will be launched.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<tip><para>If no option is given, just the file name, &app; will
|
|
|
|
ignore the rest of the command line arguments. Use the -O flag
|
|
|
|
to open the file and do something with the data.
|
|
|
|
</para></tip>
|
|
|
|
|
|
|
|
<para>The format can be specified with the
|
|
|
|
<command>-f <replaceable>format</replaceable></command> or
|
|
|
|
<command>--format=<replaceable>format</replaceable></command>
|
|
|
|
option, immediately following the <filename>filename</filename>.
|
|
|
|
If not specified, the guess will be attempted based on
|
|
|
|
the <filename>filename</filename>. For gramps-xml
|
|
|
|
format, the <filename>filename</filename> is actually the
|
|
|
|
name of directory under which the gramps database resides. For
|
|
|
|
grdb and gedcom,
|
|
|
|
the <filename>filename</filename> is the name of the
|
|
|
|
corresponding file.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<tip><para>Only grdb, gramps-xml,
|
|
|
|
and gedcom formats can be opened directly.
|
|
|
|
For other formats, you will need to use the import option
|
|
|
|
which will set up the empty database and then import data into it.
|
|
|
|
</para></tip>
|
|
|
|
|
|
|
|
<tip><para>Only a single file can be opened. If you need to combine
|
|
|
|
data from several sources, you will need to use
|
|
|
|
the import option.</para></tip>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 id="cmdline-opt-import"><title>Import options</title>
|
|
|
|
<para> The files destined for import can be specified with the
|
|
|
|
<command>-i <filename>filename</filename></command>
|
|
|
|
or <command>--import=<filename>filename</filename></command>
|
|
|
|
option. The format can be specified with the
|
|
|
|
<command>-f <replaceable>format</replaceable></command> or
|
|
|
|
<command>--format=<replaceable>format</replaceable></command>
|
|
|
|
option, immediately following the <filename>filename</filename>.
|
2003-09-23 06:18:01 +05:30
|
|
|
If not specified, the guess will be attempted based on
|
2005-05-11 19:34:47 +05:30
|
|
|
the <filename>filename</filename>. For gramps-xml
|
|
|
|
format, the <filename>filename</filename> is actually the
|
2003-09-23 06:18:01 +05:30
|
|
|
name of directory under which the gramps database resides. For
|
2005-05-11 19:34:47 +05:30
|
|
|
grdb, gedcom, gramps-pkg, and geneweb,
|
|
|
|
the <filename>filename</filename> is the name of the
|
2003-09-23 06:18:01 +05:30
|
|
|
corresponding file.
|
|
|
|
</para>
|
|
|
|
|
2005-05-11 19:34:47 +05:30
|
|
|
<tip><para>More than one file can be imported in one command.
|
|
|
|
If this is the case, &app; will incorporate the data from
|
|
|
|
the next file into the database available at the moment.
|
|
|
|
</para></tip>
|
|
|
|
|
2003-09-23 06:18:01 +05:30
|
|
|
<para>When more than one input file is given, each has to be preceded
|
|
|
|
by <command>-i</command> flag. The files are imported in the
|
2005-05-11 19:34:47 +05:30
|
|
|
specified order, i.e. <command>
|
|
|
|
-i <filename>file1</filename>
|
|
|
|
-i <filename>file2</filename>
|
|
|
|
</command> and <command>
|
|
|
|
-i <filename>file2</filename>
|
|
|
|
-i <filename>file1</filename>
|
|
|
|
</command>
|
2003-09-23 06:18:01 +05:30
|
|
|
might produce different gramps IDs in the resulting database.
|
2005-05-11 19:34:47 +05:30
|
|
|
</para></sect2>
|
2003-09-23 06:18:01 +05:30
|
|
|
|
2005-05-11 19:34:47 +05:30
|
|
|
<sect2 id="cmdline-opt-export"><title>Export options</title>
|
|
|
|
<para> The files destined for export can be specified with the
|
|
|
|
<command>-o <filename>filename</filename></command> or
|
|
|
|
<command>--output=<filename>filename</filename></command>
|
2003-09-23 06:18:01 +05:30
|
|
|
option. The format can be specified with the <command>-f</command>
|
2005-05-11 19:34:47 +05:30
|
|
|
option immediately following the <filename>filename</filename>.
|
2003-09-23 06:18:01 +05:30
|
|
|
If not specified, the guess will be attempted based on
|
2005-05-11 19:34:47 +05:30
|
|
|
the <filename>filename</filename>. For gramps-xml
|
|
|
|
and iso formats, the <filename>filename</filename>
|
2003-09-23 06:18:01 +05:30
|
|
|
is actually the name of directory the gramps database will be written
|
2005-05-11 19:34:47 +05:30
|
|
|
into. For grdb, gedcom, wft, geneweb,
|
|
|
|
and gramps-pkg, the <filename>filename</filename>
|
2003-09-23 06:18:01 +05:30
|
|
|
is the name of the resulting file.
|
|
|
|
</para>
|
|
|
|
|
2005-05-11 19:34:47 +05:30
|
|
|
<tip><para>More than one file can be exported in one command.
|
|
|
|
If this is the case, &app; will attempt to write several files
|
|
|
|
using the data from the database available at the moment.
|
|
|
|
</para></tip>
|
|
|
|
|
2003-09-23 06:18:01 +05:30
|
|
|
<para> When more than one output file is given, each has to be
|
2003-09-28 04:31:41 +05:30
|
|
|
preceded by <command>-o</command> flag. The files are written one
|
2003-09-23 06:18:01 +05:30
|
|
|
by one, in the specified order.
|
2005-05-11 19:34:47 +05:30
|
|
|
</para></sect2>
|
2003-09-23 06:18:01 +05:30
|
|
|
|
2005-05-11 19:34:47 +05:30
|
|
|
<sect2 id="cmdline-opt-action"><title>Action options</title>
|
|
|
|
<para> The action to perform on the imported data can be
|
2003-09-23 06:18:01 +05:30
|
|
|
specified with the
|
2005-05-11 19:34:47 +05:30
|
|
|
<command>-a <replaceable>action</replaceable></command> or
|
|
|
|
<command>--action=<replaceable>action</replaceable></command>
|
2003-09-23 06:19:35 +05:30
|
|
|
option. This is done after all imports are successfully completed.
|
2005-05-11 19:34:47 +05:30
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>Currently available actions are:</para>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
|
|
|
|
<varlistentry><term>summary</term>
|
|
|
|
<listitem><para>This action is the same as
|
2003-09-23 06:18:01 +05:30
|
|
|
<menuchoice><guimenu>Reports</guimenu><guisubmenu>View</guisubmenu>
|
2005-05-11 19:34:47 +05:30
|
|
|
<guimenuitem>Summary</guimenuitem></menuchoice>
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
|
|
|
|
|
|
|
<varlistentry><term>check</term>
|
|
|
|
<listitem><para>This action is the same as
|
2003-09-23 06:18:01 +05:30
|
|
|
<menuchoice><guimenu>Tools</guimenu>
|
|
|
|
<guisubmenu>Database Processing</guisubmenu>
|
2005-05-11 19:34:47 +05:30
|
|
|
<guimenuitem>Check and Repair</guimenuitem></menuchoice>.
|
|
|
|
</para> </listitem> </varlistentry>
|
|
|
|
|
|
|
|
<varlistentry><term>report</term>
|
|
|
|
<listitem><para>This action allows producing reports
|
|
|
|
from the command line. As reports generally have many options
|
|
|
|
of their own, this action should be followed by the report option
|
|
|
|
string. The string is given using the
|
|
|
|
<command>-p <replaceable>option_string</replaceable></command> or
|
|
|
|
<command>--options=<replaceable>option_string</replaceable></command>
|
|
|
|
option.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<tip><para>
|
|
|
|
The report option string should satisfy the following conditions:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
|
|
|
|
<listitem><para>It must not contain any spaces. If some arguments
|
|
|
|
need to include spaces, the string should be enclosed with
|
|
|
|
quotation marks.
|
|
|
|
</para></listitem>
|
|
|
|
|
|
|
|
<listitem><para>Option string must list pairs of option names
|
|
|
|
and values.
|
|
|
|
</para></listitem>
|
|
|
|
|
|
|
|
<listitem><para>Withing a pair, option name and value must be
|
|
|
|
separated by the equal sign.
|
|
|
|
</para></listitem>
|
|
|
|
|
|
|
|
<listitem><para>Different pairs must be separated by commas.
|
|
|
|
</para></listitem>
|
|
|
|
|
|
|
|
</itemizedlist>
|
|
|
|
</tip>
|
|
|
|
|
|
|
|
|
|
|
|
<para>Most of the report options are specific for every report.
|
|
|
|
However, there some common options.
|
2003-09-23 06:18:01 +05:30
|
|
|
</para>
|
|
|
|
|
2005-05-11 19:34:47 +05:30
|
|
|
<variablelist>
|
|
|
|
|
|
|
|
<varlistentry><term>name=report_name</term>
|
|
|
|
<listitem> <para>
|
|
|
|
This mandatory option determines which report will be
|
|
|
|
generated. If the supplied report_name does not correspond
|
|
|
|
to any available report, the error message will be printed
|
|
|
|
followed by the list of available reports.
|
|
|
|
</para>
|
|
|
|
</listitem> </varlistentry>
|
|
|
|
|
|
|
|
<varlistentry><term>show=all</term>
|
|
|
|
<listitem> <para>
|
|
|
|
This will produce the list of names for all options available for
|
|
|
|
a given report.
|
|
|
|
</para>
|
|
|
|
</listitem> </varlistentry>
|
|
|
|
|
|
|
|
<varlistentry><term>show=option_name</term>
|
|
|
|
<listitem> <para>
|
|
|
|
This will print the description of the functionality supplied
|
|
|
|
by the option_name, as well as what are the acceptable types
|
|
|
|
and values for this option.
|
|
|
|
</para>
|
|
|
|
</listitem> </varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Use the above options to find out everything about a given report.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<tip><para>
|
|
|
|
If an option is not supplied, the last used value will be used.
|
|
|
|
If this report has never been generated before, then the
|
|
|
|
value from last generated report will be used when applicable.
|
|
|
|
Otherwise, the default value will be used.
|
|
|
|
</para></tip>
|
|
|
|
|
|
|
|
</listitem> </varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
2003-09-23 06:18:01 +05:30
|
|
|
<para>When more than one output action is given, each has to be
|
|
|
|
preceded by <command>-a</command> flag. The actions are performed
|
|
|
|
one by one, in the specified order.
|
2005-05-11 19:34:47 +05:30
|
|
|
</para></sect2>
|
2003-09-23 06:18:01 +05:30
|
|
|
|
2005-02-15 08:05:26 +05:30
|
|
|
</sect1>
|
2003-09-23 06:18:01 +05:30
|
|
|
|
|
|
|
|
2005-02-15 08:05:26 +05:30
|
|
|
<sect1 id="cmdline-operation">
|
2003-09-23 06:18:01 +05:30
|
|
|
<title>Operation</title>
|
|
|
|
|
2005-05-11 19:34:47 +05:30
|
|
|
<itemizedlist>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>If the first argument on the command line does not start
|
|
|
|
with dash (i.e. no flag), &app; will attempt to open the file
|
|
|
|
with the name given by the first argument and start interactive
|
|
|
|
session, ignoring the rest of the command line arguments.
|
|
|
|
</para></listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>If the <command>-O</command> flag is given, then &app; will
|
|
|
|
try opening the
|
|
|
|
supplied file name and then work with that data, as instructed by
|
|
|
|
the further command line parameters.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<note><para>Only one file can be opened in a single invokation
|
|
|
|
of &app;. If you need to get data from multiple sources, use
|
|
|
|
the importing options by using <command>-i</command> flag.
|
|
|
|
</para></note>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>With or without the <command>-O</command> flag, there could
|
|
|
|
be multiple imports, exports, and actions specified further on
|
|
|
|
the command line by using <command>-i</command>,
|
|
|
|
<command>-o</command>, and <command>-a</command> flags.
|
|
|
|
</para></listitem>
|
|
|
|
|
|
|
|
<listitem>
|
2003-09-28 04:31:41 +05:30
|
|
|
<para>The order of <command>-i</command>, <command>-o</command>,
|
|
|
|
or <command>-a</command> options with respect to each does not matter.
|
|
|
|
The actual execution order always is: all imports (if any) -> all
|
|
|
|
exports (if any) -> all actions (if any).</para>
|
2005-05-11 19:34:47 +05:30
|
|
|
|
|
|
|
<note><para>But opening must always be first!</para></note>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>If no <command>-O</command> or <command>-i</command>
|
|
|
|
option is given, gramps will launch
|
2003-09-23 06:18:01 +05:30
|
|
|
its main window and start the usual interactive session with the empty
|
2005-05-11 19:34:47 +05:30
|
|
|
database, since there is no data to process, anyway.
|
|
|
|
</para></listitem>
|
2003-09-23 06:18:01 +05:30
|
|
|
|
2005-05-11 19:34:47 +05:30
|
|
|
<listitem>
|
2003-09-23 06:18:01 +05:30
|
|
|
<para>If no <command>-o</command> or <command>-a</command> options
|
|
|
|
are given, gramps will launch its main window and start the usual
|
2005-05-11 19:34:47 +05:30
|
|
|
interactive session with the database resulted from opening
|
|
|
|
and all imports (if any). This database resides in the
|
|
|
|
<filename>import_db.grdb</filename> file under the
|
|
|
|
<filename>~/.gramps/import/</filename> directory.
|
|
|
|
</para></listitem>
|
|
|
|
|
|
|
|
<listitem>
|
2003-09-28 04:31:41 +05:30
|
|
|
<para>Any errors encountered during import, export, or action, will
|
2003-09-23 06:18:01 +05:30
|
|
|
be either dumped to stdout (if these are exceptions handled by gramps)
|
|
|
|
or or to stderr (if these are not handled). Use usual shell redirections
|
2005-05-11 19:34:47 +05:30
|
|
|
of stdout and stderr to save messages and errors in files.
|
|
|
|
</para></listitem>
|
|
|
|
|
|
|
|
</itemizedlist>
|
2003-09-23 06:18:01 +05:30
|
|
|
|
2005-02-15 08:05:26 +05:30
|
|
|
</sect1>
|
2003-09-23 06:18:01 +05:30
|
|
|
|
2005-02-15 08:05:26 +05:30
|
|
|
<sect1 id="cmdline-examples">
|
2003-09-23 06:18:01 +05:30
|
|
|
<title>Examples</title>
|
2005-05-11 19:34:47 +05:30
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>To import four databases (whose formats can be determined from
|
2003-09-23 06:18:01 +05:30
|
|
|
their names) and then check the resulting database for errors, one may
|
2005-05-11 19:34:47 +05:30
|
|
|
type:</term>
|
2003-09-23 06:18:01 +05:30
|
|
|
|
2005-05-11 19:34:47 +05:30
|
|
|
<listitem>
|
|
|
|
<para><command>gramps
|
|
|
|
-i<filename>file1.ged</filename>
|
|
|
|
-i <filename>file2.tgz</filename>
|
|
|
|
-i <filename>~/db3</filename>
|
|
|
|
-i <filename>file4.wft</filename>
|
|
|
|
-a <filename>check</filename></command>
|
|
|
|
</para> </listitem></varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>To explicitly specify the formats in the above example, append
|
|
|
|
filenames with appropriate <command>-f</command> options:</term>
|
|
|
|
<listitem>
|
|
|
|
<para><command>gramps
|
|
|
|
-i <filename>file1.ged</filename>
|
|
|
|
-f <replaceable>gedcom</replaceable>
|
|
|
|
-i <filename>file2.tgz</filename>
|
|
|
|
-f <replaceable>gramps-pkg</replaceable>
|
|
|
|
-i <filename>~/db3</filename>
|
|
|
|
-f <replaceable>gramps</replaceable>
|
|
|
|
-i <filename>file4.wft</filename>
|
|
|
|
-f <replaceable>wft</replaceable>
|
|
|
|
-a <replaceable>check</replaceable></command>
|
|
|
|
</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>To record the database resulting from all imports, supply
|
2003-09-23 06:18:01 +05:30
|
|
|
<command>-o</command> flag (use <command>-f</command>
|
2005-05-11 19:34:47 +05:30
|
|
|
if the filename does not allow gramps to guess the format):</term>
|
|
|
|
<listitem>
|
|
|
|
<para><command>gramps
|
|
|
|
-i <filename>file1.ged</filename>
|
|
|
|
-i <filename>file2.tgz</filename>
|
|
|
|
-o <filename>~/new-package</filename>
|
|
|
|
-f <replaceable>gramps-pkg</replaceable></command>
|
|
|
|
</para></listitem>
|
|
|
|
</varlistentry>
|
2003-09-23 06:18:01 +05:30
|
|
|
|
2005-05-11 19:34:47 +05:30
|
|
|
<varlistentry>
|
|
|
|
<term>To save any error messages of the above example into files
|
|
|
|
<filename>outfile</filename> and
|
|
|
|
<filename>errfile</filename>, run:</term>
|
|
|
|
<listitem>
|
|
|
|
<para><command>gramps
|
|
|
|
-i <filename>file1.ged</filename>
|
|
|
|
-i <filename>file2.tgz</filename>
|
|
|
|
-o <filename>~/new-package</filename>
|
|
|
|
-f <replaceable>gramps-pkg</replaceable>
|
|
|
|
><filename>outfile</filename>
|
|
|
|
2><filename>errfile</filename> </command>
|
|
|
|
</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>To import three databases and start interactive gramps
|
|
|
|
session with the result:</term>
|
|
|
|
<listitem>
|
|
|
|
<para><command>gramps
|
|
|
|
-i <filename>file1.ged</filename>
|
|
|
|
-i <filename>file2.tgz</filename>
|
|
|
|
-i <filename>~/db3</filename>
|
|
|
|
</command>
|
|
|
|
</para> </listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>To open a database and, based on that data, generate timeline
|
|
|
|
report in PDF format putting the output into the
|
|
|
|
<filename>my_timeline.pdf</filename> file:</term>
|
|
|
|
<listitem>
|
|
|
|
<para><command>gramps
|
|
|
|
-O <filename>file.grdb</filename>
|
|
|
|
-a <replaceable>report</replaceable>
|
|
|
|
-p <replaceable>name=timeline,off=pdf,of=my_timeline.pdf</replaceable>
|
|
|
|
</command>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<tip><para>Use the <replaceable>name=timeline,show=all</replaceable>
|
|
|
|
to find out about all available options for the timeline report. To
|
|
|
|
find out details of a particular option, use
|
|
|
|
<replaceable>show=option_name</replaceable>,
|
|
|
|
e.g. <replaceable>name=timeline,show=off</replaceable>
|
|
|
|
string.</para>
|
|
|
|
|
|
|
|
<para>To learn about available report names, use
|
|
|
|
<replaceable>name=show</replaceable> string.
|
2003-09-28 04:31:41 +05:30
|
|
|
</para>
|
2005-05-11 19:34:47 +05:30
|
|
|
</tip>
|
|
|
|
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>Finally, to start normal interactive session type:</term>
|
|
|
|
<listitem><para> <command>gramps </command></para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
2003-09-28 04:31:41 +05:30
|
|
|
|
2005-02-15 08:05:26 +05:30
|
|
|
</sect1>
|
2003-09-23 06:18:01 +05:30
|
|
|
|
2005-02-15 08:05:26 +05:30
|
|
|
</appendix>
|