Client tools
The following table describes the information and switches passed by Contenta for Client Tools.
| Switch | Description |
|---|---|
-cookie | A tool cookie used to connect to the Contenta Server. |
-p pcm_path | Path name of the selected object within the Contenta database. |
-b object_id | Internal Contenta identifier of the selected object (also called the BLOB ID); number is preceded by # |
-r rev_code | Revision code of the selected object. |
-cfg config_id | Configuration identifier; number is preceded by # |
-idpath id_path | The ID path of the selected object within the database. |
-user user_login | Login name of the current user |
-dbase database | Name of the current database |
-node Contenta server node | Name of current Contenta Server node |
-s socket | Current 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):
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"