xSpect was originally developed for use in the unix operating
environment with c shell scripts. Subsequently, tcl scripts
were developed that can run on either window or unix systems.
The tcl shell scripts in this directory can be used in either system.
The platform being used is tested in the link.tcl file
and required configurations defined.

The files in this directory that have tcl script segments that
are intended to be combined to a project script have 'txt'
extensions. In general, they are not intended to be executed
as separate scripts but must be used after the link.tcl module.
This file has the 'tcl' extension that is recognized on windows
and automatically executed as a tcl/tk script.

The path to the installation directory ($XSPECT_DIR) must
be defined as an environmental variable for the operating
system being used (either Unix or Windows). This is used
in link.tcl to define the path to the XSPECT binary
programs. It is also used within the binary programs to
define the path to required files (database, materials, etc.).

Unix:
  For execution on Unix systems, the enrivonmental variable named
  XSPECT_DIR should be defined as the path to the installation
  directory where _xspect3.5, _database, _materials, etc are
  located. Environmental variables are set using the setenv command
  and are often set in the .cshrc script so that they are automatically
  executed during login.

  For unix execution, scripts are executed in a terminal window
  with execution status and output messages written
  to the terminal using standard output.

Windows:
  For execution on Windows systems, the environmental variable named
  XSPECT_DIR should be defined as the path to the installation
  directory where _xspect3.5, _database, _materials, etc are
  located. Environmental variables in windows 2000/XP can be set by
  My computer -> properties -> advanced -> environmental variables
  Variables are specific to the login account used.

  For windows, execution is done by executing the script (mouse double
  click). In the link script module, a console window is requested
  and execution status is written to the console using standard output.

  For interactive use in the Windows environment, the link.tcl script
  can be executed and the tcl console used to execute xSpect programs.
  Programs must be executed by using the full path. This is best
  done by defining the input arguements as a variable and then
  executing the command. For example;
          %set in "10 20 1
          >        1
          >        airNBS 10.0"
          %exec $BIN/atten_coeff <<$in

  The user should define shortcuts to such things as the _materials
  or _help directories as a convenience in accessing documentation
  or checking the composition of materials.
  When developing applications, templates should be copied from the
  distribution directory to a user directory.


