ToolTalk User's Guide

Converting the Network Database

A network CE database is the per-OW-installation database. You need to convert each network CE database that has ToolTalk types other than those shipped with the OpenWindows Version 3 product.


Note –

You must be logged in as root to run the ttce2xdr script for the network CE databases.


To convert a network-wide database, enter the following command on the command line:

ttce2xdr [ -xnh ] -d  network [ OPENWINHOME-from [ OPENWINHOME-to ]]

Table A–3 describes the options for the ttce2xdr script.

Table A–3 ttce2xdr Script Options

Option 

Description 

-x

Displays the underlying commands executed by ttce2xdr.

-n

Displays the underlying commands that ttce2xdr can execute.

-h

Describes the options for ttce2xdr.

-d

Specifies the database to be converted: user, system, or network.

OPENWINHOME-from

Reads the types from the databases under this directory. If OPENWINHOME-to is set, the types are written to the databases under that specified directory; otherwise, the current value of the environment variable OPENWINHOME is used to locate the databases to which the types are written.

OPENWINHOME-to

Writes the types to the databases under this directory. If OPENWINHOME-from is set, the types are read from the databases under that specified directory; otherwise, the current value of the environment variable OPENWINHOME is used to locate the databases from which the types are read.

The types are read from the CE database

	$OPENWINHOME/lib/cetables/cetables

and written to the new ToolTalk Types database

	$OPENWINHOME/etc/tt/types.xdr

To move ToolTalk types other than the ones shipped with the OpenWindows Version 3 product from the network CE database to the network XDR database, enter the following command on the command line:

ttce2xdr -d network old_OPENWINHOME new_OPENWINHOME 

where old_OPENWINHOME is the OpenWindow installation that holds the old network CE database and new_OPENWINHOME is the OpenWindow installation in which to update the ToolTalk XDR database.