02.03.2014 Views

Tornado

Tornado

Tornado

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5<br />

Shell<br />

-> x = (val1 - val2) / val3<br />

new symbol "x" added to symbol table<br />

address = …<br />

value = …<br />

-> f = 1.41 * 2<br />

new symbol "f" added to symbol table<br />

f = (…address of f…): value = 2.82<br />

Variable f gets an 8-byte floating point value.<br />

5<br />

WindSh Environment Variables<br />

WindSh allows you to change the behavior of a particular shell session by setting<br />

several environment variables. The Tcl procedure shConfig allows you to display<br />

and set how I/O redirection, C++ constructors and destructors, loading, and the<br />

load path are defined and handled by the shell.<br />

Table 5-1<br />

WindSh Environment Variables<br />

Variable<br />

SH_GET_TASK_IO<br />

LD_CALL_XTORS<br />

LD_SEND_MODULES<br />

LD_PATH<br />

Result<br />

Sets the I/O redirection mode for called functions.<br />

The default is “on”, which redirects input and output<br />

of called functions to WindSh. To have input and<br />

output of called functions appear in the target<br />

console, set SH_GET_TASK_IO to “off.”<br />

Sets the C++ strategy related to constructors and<br />

destructors. The default is “target”, which causes<br />

WindSh to use the value set on the target using<br />

cplusXtorSet( ). If LD_CALL_XTORS is set to “on”,<br />

the C++ strategy is set to automatic (for the current<br />

WindSh only). “Off” sets the C++ strategy to manual<br />

for the current shell.<br />

Sets the load mode. The default “on” causes modules<br />

to be transferred to the target server. This means that<br />

any module WindSh can see can be loaded. If<br />

LD_SEND_MODULES if “off”, the target server<br />

must be able to see the module to load it.<br />

Sets the search path for modules using the separator<br />

“;”. When a ld() command is issued, WindSh first<br />

searches the current directory and loads the module<br />

if it finds it. If not, WindSh searches the directory<br />

path for the module.<br />

155

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!