/tt/bin/
ttsession
rpc.ttdbserverd
/tt/bin/
ttcp
ttmv
ttrm
ttrmdir
tttar
/tt/bin/
ttdbck
/tt/bin/
tt_type_comp
/tt/bin/
ttce2xdr
/tt/lib libtt.so.1 libtt.a
/tt/share/include/desktop/ tt_c.h
/tt/man/man1/ install_tt.1 tt_type_comp.1 ttcp.1 ttmv.1 ttrm.1 ttrmdir.1 ttsession.1 tttar.1
/tt/man/man1m/ rpc.ttdbserverd.1m ttce2xdr.1m ttdbck.1m ttdbserverd.1m
/tt/man/man3/ ttapi.3
/tt/demo/ CoEd.6 edit.demo.6 ttsample1.6 ttsnoop.6
Table 4-1 Environment Variables
A process is given a modified environment when it is automatically started by the ToolTalk service. The modified environment includes the environment variables $_TT_SESSION, $_TT_TOKEN, and any contexts in the start-message whose keyword begins with the dollar sign symbol ($). Optionally, the environment variable $_TT_FILE may also be included in the modified environment if it is a file-scoped message.
redirects files to the /var/tmp directory.
TMPDIR=/var/tmp
To do this, first make your start string be similar to the following:
Next, to make sure myprog is placed in the right session and receives its initial message, you need to propagate the important ToolTalk environment variables. The ttrsh shell script shown in Code Example 4-1 propagates these environment variables.
# rsh farhost myprog
Code Example 4-1 Propagating ToolTalk Environment Variables
#! /bin/sh
# This command runs a command remotely in the background, by pointing
# stdout and stderr at /dev/null.
# By running this through the Bourne shell at the other end, and
# we get rid of the rsh and rshd which otherwise hand around at either
# end.
# Hacked from a posting by clyde@emx.utexas.edu to list.xpert
#
#set -x
user=
debug=
HOST=${HOST-`hostname`}
if [ "$1" = "-debug" ]; then
debug=1
shift
fi
if [ $# -lt 2 -o "$1" = "-h" -o "$1" = "-help" ]; then
echo "Usage: ttrsh [-debug] remotehost [-l username] remotecommand"
echo "Usage: ttrsh [-h | -help]"
exit 1
else
host=$1
shift
if test "$1" = "-l" ; then
shift
user=$1
shift
fi
fi
xhostname=`expr "$DISPLAY" : "\([^:]*\).*"`
xscreen=`expr "$DISPLAY" : "[^:]*\(.*\)"`
if test x$xscreen = x; then
xscreen=":0.0"
fi
if test x$xhostname = x -o x$xhostname = x"unix"; then
DISPLAY=$HOST$xscreen
fi
if [ "$user" = "" ]; then
userOption=""
else
userOption="-l $user"
fi
if [ $debug ]; then
outputRedirect=
else
outputRedirect='> /dev/null 2>&1 &'
fi
(
echo "DTHOME=$DTHOME;export DTHOME;\
_TT_SESSION=$_TT_SESSION;export _TT_SESSION;\
_TT_TOKEN=$_TT_TOKEN;export _TT_TOKEN;_TT_FILE=$_TT_FILE;\
export _TT_FILE;DISPLAY=$DISPLAY;export DISPLAY;($*)" \
$outputRedirect | rsh $host $userOption /bin/sh &
) &
uses the value of context slot $CON1.
start "my_application $CON1"
The ToolTalk service requires that a database server run on each machine that stores files that contain ToolTalk objects or files that are the subject of ToolTalk messages. When an application attempts to reference a file on a machine that does not contain a database server, an error similar to the following message is displayed:
where integral is the hostname and tcp is the application protocol. This error message indicates that the connection failed. A failed connection can also be caused by network problems.
% Error: Tool Talk database server on integral is not running: tcp
For example:
where client is the machine where the ToolTalk binaries are located.
# rcp client:/tt/bin/rpc.ttdbserverd /tt/bin/rpc.ttdbserverd
Caution: Before you copy the database server image, verify that the operating systems are the same levels.
# 100083/1 stream rpc/tcp wait root /tt/rpc.ttdbserverd rpc.ttdbserverd
(inetd-pid in the following example is from the ps listing.)
# ps -ef | grep inetd
# kill -HUP inetd-pid
rpc.ttdbserverd: Any data written using a ToolTalk 1.0.x DB server
after using a new ToolTalk DB server will be ignored.
# Map first host machine
oldhostname1 newhostname1
# Map second host machine
oldhostname2 newhostname2
where oldhostname is the name of the machine the ToolTalk client needs to access and newhostname is the name of a machine that is running the ToolTalk database server.
The map files have the same order of precedence as the ToolTalk Types (usr, system, or network) databases.
# Map first partition
/cdrom /usr
# Map second partition
/sr0/export/home /export/home
maps the read-only partition /cdrom to /usr, a read-write partition; and maps the read-only partition /sr0/export/home to /export/home, a read-write partition.
The map file is read when the ToolTalk database server is started, or when the database receives a USR2 signal.