Next Prev Up Top Contents Index

20.1 Introduction

You can run a UNIX command line session from within the environment by using the shell tool, or remote shell tool. The shell tool and remote shell tool look similar, but you must specify which host to run the remote shell on when you start it up. The shell tool automatically runs on your current host.

The shell tool is shown in The shell tool.

 

Figure 20.1 The shell tool

You can create a shell tool in one of two ways:

The Operations menu contains the following commands:

Choose Operations > Interrupt to send a break signal to the shell process. This stops the current task and returns control to the UNIX command line in the shell tool, if necessary.

Choose Operations > Suspend to send a suspend signal to the shell process. This suspends the current task so that you can continue entering commands at the UNIX command line. To resume the task, type fg at the UNIX command line in the shell tool. Alternatively, type bg at the command line to force a task to run in the background.

Choose Operations > Eof to send an EOF signal to the process.

The shell tool is another example of a tool which is based on an editor window, and thus many of the keyboard commands available in the editor are also available in the shell tool.

Like the listener, the shell tool is run in execute mode, which means that several other keyboard commands are available, as follows:

    Press Meta-P or Ctrl-C Ctrl-P to display the previous UNIX command.

    Press Meta-M or Ctrl-C Ctrl-N to display the next UNIX command.

    Press Meta-R or Ctrl-C Ctrl-R to perform a search of the UNIX command history.

By default, the shell tool runs the UNIX command shell known as bash . If you would rather use a different shell (such as csh , tcsh , ksh , etc.), or if you do not have bash available on your UNIX system, then change the value of the variable editor:*shell-shell* , which has the value nil by default. This means that the shell tool will use the value of the variable ESHELL or SHELL if set, or one of "/bin/sh" (system V) and "/bin/csh" (otherwise).

 


Common LispWorks User Guide - 14 Dec 2001

Next Prev Up Top Contents Index