|  |  | The `getfix` Command

## The `getfix` Command

The `getfix` command gets the current fix data from the receiver using the real-time log and saves it to a file:

    getfix PATH [TIMEOUT]

where:

- `PATH` is the path to the output file, unless it is `stdout` in which case output will be to the standard output. Existing files will be silently overwritten.
- `TIMEOUT` is the number of seconds to wait for a good position fix before giving up. If this argument is not given or is 0, the program will not exit before getting a good position fix.

If a good position fix was read, the ouput will consist of the following lines:

- latitude and longitude in decimal degrees separated by one space;
- datum ("WGS 84" for Garmin receivers);
- date and time formatted using the selected date format in the preferences file;
- bearing in degrees (empty if undefined);
- horizontal speed followed by the units (empty if undefined);
- vertical speed (in metre/second);
- expected position error (EPE, metre; empty if undefined);
- horizontal expected position error (EPH, metre; empty if undefined);
- vertical expected position error (EPV, metre; empty if undefined).

This command only works with Garmin receivers.

|  |  | The `getfix` Command