08.06.2013 Views

Bernese GPS Software Version 5.0 - Bernese GNSS Software

Bernese GPS Software Version 5.0 - Bernese GNSS Software

Bernese GPS Software Version 5.0 - Bernese GNSS Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

18.8 Calling Programs Without the Menu System<br />

18.8 Calling Programs Without the Menu System<br />

All <strong>Bernese</strong> Fortran programs can be started without the menu system, too. Every <strong>Bernese</strong><br />

program needs exactly one input file. There is a difference between starting the programs<br />

on Windows platforms and on UNIX systems. On Windows platforms a program can be<br />

started by typing the following command on the command line<br />

C:> %XG%\program %U%\PAN\program.INP<br />

In other words, the name of the program input file must appear as a command line parameter.<br />

Because of the lack of a standard way of reading command line parameters by a program<br />

written in Fortran, the name of the program input file is read from the standard input on<br />

UNIX platforms. This means that one can start a main <strong>Bernese</strong> program by typing, e.g.,<br />

the following command<br />

> echo $U/PAN/program.INP | $XG/program<br />

On UNIX systems the command<br />

> SJ program<br />

may be used to start a program from the command line, too.<br />

Starting <strong>Bernese</strong> programs without the menu system will probably not be used very often.<br />

This possibility is useful mainly for debugging purposes to get access to the standard output.<br />

Any program, also programs not available within the menu (e.g., CLKEST) may be started<br />

under UNIX using the command<br />

RUN<strong>GPS</strong> CLKEST<br />

This command starts the menu with the panel for the selected program displayed. The<br />

options may then be set and the program executed as usual. After the execution of CLKEST<br />

the input panel is displayed again. A second second argument of the command RUN<strong>GPS</strong> is<br />

the path to the executable. Default is ${XG}. The command expects that the input file has<br />

the same name as the program. If a corresponding input file exists in the current directory,<br />

this file is used. Otherwise the input file from ${U}/PAN is taken.<br />

Another way to start a program that is not supported by the menu is to include it as user<br />

program in ”Menu>Configure>Program names” and start it with ”Menu>User”. This mechanism also<br />

works on Windows platforms.<br />

<strong>Bernese</strong> <strong>GPS</strong> <strong>Software</strong> <strong>Version</strong> <strong>5.0</strong> Page 369

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

Saved successfully!

Ooh no, something went wrong!