Documentation Center

Running testPubServerAi.pl from the Command Prompt

To gain a better understanding of how the adapters work, run testPubServerAi.pl from a command line before configuring it as a tool.

Since this script and all of the Perl modules preivously listed, are delivered to the client as well as the server, you can test on the SDL Contenta client or the server.

To view the command line syntax, type the script name then press the Enter key.

Cmd line Usage:
testPubServerAi.pl
-p <PcmPath>
-dbase <database>
-user <user>
-pw <passwd>
-s <socket>
-node <node>
[-fetch|-classic] [-view]
'-view' defaults to '-fetch' unless '-classic' specified.
Definitions:
  • view - if xml, include an xml decl. No doctype definition included
  • fetch - exports CompoundAscii based objects via faster API methods
  • classic - exports classic objects: i.e. document, module, and so on
In general, the fast fetch adapter is recommended. Below is one example of the syntax to execute the program:
testPubServerAi.pl -p /#1/#2/#6/#101/#36 -dbase mutts -user sysadmin -pw manager
-s 6050 -node fido -fetch
The exported document is written to:
  • Windows: SDL Contenta_home/TEMP/publish/user
  • Unix: /tmp/publish/user

    where SDL Contenta_home is the directory where Contenta is installed and user is the name of the user who executed the program.

When the tool is a server/support tool the log file is on the server. When the tool is a client tool, the log file is on the client where the tool was run.