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.

19.11 Error Handling<br />

The standard output and error output of the BPE client and user scripts may be re-directed<br />

into a log file (e.g., by specifying “--stdout= --stderr=” in the CPU file –<br />

see Section 19.4). In this case the file will contain debug output from programs and scripts<br />

as well as system messages in case of a hard crash of a program or script. The name and<br />

default location of the log file is the same as the name of the corresponding protocol file<br />

but the default extension is LOG.<br />

19.11 Error Handling<br />

19.11.1 Checks when Preparing a BPE<br />

The chance of errors (particularly during the preparation of a new BPE run) is relatively<br />

high due to the complexity of the system. However, if one follows a few basic recommendations<br />

it should not be too difficult to eliminate the errors rapidly:<br />

(1) Before trying to work with the BPE make sure that the <strong>Bernese</strong> <strong>GPS</strong> <strong>Software</strong> is<br />

behaving correctly in non-BPE mode.<br />

(2) Make sure that the CPU-file (see Section 19.4) is correct. If remote-shell or secure-shell<br />

commands are used in the CPU-file, test these commands outside the BPE. Make sure<br />

that the commands run in background on UNIX. The submission of a command must<br />

be possible without interaction (e.g., without entering a password when using ssh).<br />

(3) Before preparing your own BPE runs, check that the examples delivered with the<br />

<strong>Bernese</strong> <strong>GPS</strong> <strong>Software</strong> work properly.<br />

(4) Before running any new BPE in non-interactive mode, try the interactive mode first.<br />

The error messages in both modes are the same but in non-interactive mode one has<br />

to know where to find them. In interactive mode the menu program tries to display<br />

the error messages automatically. Already before actually starting the BPE server the<br />

menu program checks several things (particularly the process control file) for logical<br />

errors (e.g., required waiting for a non-existing script etc.). A number of checks are<br />

already performed when editing a PCF file using ”Menu>BPE>Edit process control file (PCF)”.<br />

(5) Test new user scripts outside the BPE as far as possible before incorporating them<br />

into the BPE. The syntax of a Perl script may, e.g., be checked using the command<br />

perl -c script.<br />

(6) Use the die- instead of exit-command for handling errors in scripts.<br />

(7) Check carefully that the program output files generated by the BPE are unique so<br />

that they are not mutually overwritten by other scripts running in parallel. Make sure<br />

that the output file names specified in the program input files correspond to the names<br />

of input files needed by successive programs.<br />

(8) Make sure that each BPE option directory contains the menu input files MENU*.INP.<br />

Remember that the BPE uses the files from the option directories and not those from<br />

the user environment ${U}/PAN. This is particularly important if you add, e.g., a drive<br />

variable to MENU VAR.INP.<br />

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

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

Saved successfully!

Ooh no, something went wrong!