convert defines Convert commands from the UNIX shell.
Note that the
% is the UNIX shell’s prompt which you do not type.
A message similar to:
will be displayed. You will then be able to mix Convert and UNIX commands.
convert command is defined by the Starlink startup procedures to ‘source’ file
convert.csh in the
Convert executables directory. Non-Starlink sites must make their own arrangements.
To start ICL, type:
You will see any messages produced by system and user procedures, followed by the
something like the following.
Then, to make the Convert commands known to the command language, type:
This will produce a Convert startup message similar to:
The ICL command
CONVERT is defined by the standard Starlink ICL login files to
convert.icl in the Convert executables directory. Non-Starlink sites must make their own
Having initialised Convert you are now ready to issue a Convert command.
To run an application you can just give its name (or its name preceded by
will be prompted for any required parameters. Alternatively, you may enter parameter
values on the command line specified by position or by keyword. If you want to override
any defaulted parameters, then you specify the parameter’s value on the command line.
Note that from UNIX the commands are in lowercase, whereas from ICL the case does not
Most Convert applications can be run as simply as:
is the application’s name,
is the input file, and
is the output file following the conversion. For instance, from the UNIX shell,
or, from ICL,
both instruct the application DST2NDF to convert the DST file called
old.dst to the NDF called
new.sdf. Note that for UNIX, the case of the filename is significant.
The following example has the same effect as those immediately above, only this time you are prompted for the filenames needed by DST2NDF.
The value between the
/ / delimiters is a suggested default. You can choose to accept the suggestion
by pressing carriage return.
The simple usage, (
<application> <in> <out>), will usually produce a result but many
applications have additional parameters which you can set to give finer control over the
conversion. See the application specifications in Appendix A for details of the options
You can find details of how to use parameters for controlling Starlink program options in Section 4 of SUN/95 or in Chapter 8 of SG/4. However, you should be able to get along using intuition alone, or, perhaps by consulting the application specifications in Appendix A, which include usage, parameters, examples and details of the conversion process.
In most cases, one invocation of a Convert application is required for each file conversion but in some cases, inputs may be defined as ‘GROUPS’ of names, including wildcards (see the application specifications for details).
You can get the top-level help information for Convert by typing:
from the UNIX shell, or:
from ICL. (You can also access Convert help from ICL by using the ICL command, HELP.)
The help topics are mostly detailed descriptions of the applications but also include global information on matters such as using parameters. e.g. the following command gives help on the application UNF2NDF.
If you have commenced running an application you can still access the help library whenever you are
prompted for a parameter; you enter
?. Here is an example.
A modified version of this document exists in hypertext form. One way to access it is to use the
and a Web browser will appear, presenting the index to the hypertext form of this document. The hypertext permits easy location of referenced documents and applications.
con_<name> form is defined for use where there may be confusion between commands of the same name from