Documentation Center

Client tools

The following table describes the information and switches passed by Contenta for Client Tools.

SwitchDescription
-cookie A tool cookie used to connect to the Contenta Server.
-p pcm_pathPath name of the selected object within the Contenta database.
-b object_idInternal Contenta identifier of the selected object (also called the BLOB ID); number is preceded by #
-r rev_codeRevision code of the selected object.
-cfg config_idConfiguration identifier; number is preceded by #
-idpath id_pathThe ID path of the selected object within the database.
-user user_loginLogin name of the current user
-dbase databaseName of the current database
-node Contenta server nodeName of current Contenta Server node
-s socketCurrent socket number

The following example shows a command line specified in a tool Command Line. See Command Line Format. It also shows the command that Contenta uses to launch the tool. (The switches in the example are highlighted in bold for easy reference.)

Example

The Dynamic Import tool—reads SGML and or XML documents, splits according to rules you set, and imports the pieces into the Contenta database. You associate the tool with objects in pcmadmin. The object’s Import tool Command Line field is:

interp noflash perl di\digui.pl

When you specify the object into which to import the file, then select the Dynamic Import tool, Contenta launches the tool with the following command (example only):

Example
perl D:\XYENTE~1\Conten~1\Encaps\di\digui.pl -cookie
"dAYD6dyKl9TjU34zJrmtCFutefoGxbh7UQYW1MUt+ZB2UKO0RsVRUNTCnL7
Sy7blUlekKEhDuaoed6L5Vg8UUF" -p "/Global/sysadmin/XyBooks,
Inc./stable_data" -b "#17" -r "342" -cfg "#6" -idpath "/#1/
#2/#6/#17" -user "sysadmin" -dbase "cetrain" -node "keeter"
-s "6050"