SUPPORT commands


PROGRAM NAME

ksync - synchronize object database and any caches

DESCRIPTION

ksync is used to synchronize an object with any cache held by kcms. There are two common situations where ksync would be used:

o When an object's database has been manually edited, using kdbmedit, or some other utility.

o When a cache mechanism has been changed.

For example, if kcms is changed to store a new field in the cache, then all caches must be updated. The example below shows how all objects in all toolboxes can be synchronized.

In the future ksync will be updated to include options for synchronizing all objects within a given toolbox, and synchronizing all objects in all toolboxes.

REQUIRED ARGUMENTS

-tb
type: string
desc: toolbox name
-oname
type: string
desc: name of object in toolbox

OPTIONAL ARGUMENTS

none

EXAMPLES

The following bourne shell script can be used to invoke ksync on
all objects in all toolboxes

    #!/bin/sh
    for toolbox in `kecho -echo toolboxes`; do
            for object in `kecho -tb $toolbox -echo objects`; do
                    ksync -tb $toolbox -oname $object
            done
    done

SEE ALSO

RESTRICTIONS

REFERENCES

COPYRIGHT

Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.