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.

<strong>Tornado</strong> 2.0<br />

User’s Guide<br />

Figure 5-2<br />

WindSh Initial Display<br />

You may run as many different shells attached to the same target as you wish. All<br />

functions called from a shell have their output redirected to the WindSh window<br />

from which they received input unless you changed the shell defaults using<br />

shConfig (see WindSh Environment Variables, p.155).<br />

You can also redirect windsh input and output to other UNIX commands, as in the<br />

following test (using the shell built-in command i( ) to report on what tasks are<br />

running on the target) to look for a target-system task called tPortmapd:<br />

% echo "i" | windsh -q ev386ex@yunque | grep tPortmapd<br />

tPortmapd _portmapd 3a4280 100 PEND 2afc4 3a3f28 16 0<br />

Because you can start as many <strong>Tornado</strong> shell sessions as you like, such<br />

combinations of the <strong>Tornado</strong> shell and the UNIX shell do not interfere with<br />

interactive windsh sessions.<br />

5.2.2 Shell Features<br />

The shell provides many features which simplify your development and testing<br />

activities. These include command name and path completion, command and<br />

function synopsis printing, automatic data conversion, calculation with most C<br />

operators and variables, and help on all shell and VxWorks functions.<br />

Target Symbol and Path Completion<br />

Start to type any target symbol name or any existing directory name and then type<br />

CTRL+D. The shell automatically completes the command or directory name for<br />

152

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

Saved successfully!

Ooh no, something went wrong!