Choosing Options

If you choose -help mode, i.e. with the command ./shim -help, then you'll see not only the text of Figure 3.13, but also, following it, the explanation of the command line options, as in Figure 3.15.

The first of these, the cmds option to -help mode, displays also a brief explanation of the shim command set, about which more in Chapter 4. Of the other options, most provide some kind of control over shim output. In particular, the file, cout, and logd options select logging to a file, the standard out, or the system logger, respectively. The file option is the default if none is given, and it is also enabled if the pane option is used. The output options may be combined, so that if, for instance, you want to send the event text to both a file, and also the system logger, feel free.

Figure 3.15: The help message for options
\begin{figure}\footnotesize
\begin{verbatim}...

Two other real mode options affect message output. The pane option pops up a kde konsole window, and scrolls the text of all the events there, as they are written to the log file. The save option is used in debugging, and copies command, request, and message data to the files cmdinput.txt, shim2tws.bin, and tws2shim.bin.

Of the remaining parameters, the init option triggers prompts for the connection parameters, as already explained in § 3.2.3, and in particular Figure 3.7, while the load option forces a read of the bulk subscriptions table at startup, so that market data subscriptions may be sent to the IB tws as if via some batch job, without any command input whatsoever.

Bill Pippin 2010-01-14