|  |  | The `exec` Command

## The `exec` Command

The `exec` command executes the GPSMan commands in the file whose path is given as argument:

    exec PATH

Blank lines and lines whose first non-blank is "`#`" are discarded without further analysis. A "`\`" before the end of a line is taken as continuation line marker, but this may cause an error if there is an unmatched quote "`"`".

The following commands are available for use in GPSMan scripts:

`read FORMAT [PARAMS] [TYPES] PATH`
  read data from a file;
`write FORMAT [PARAMS] [TYPES] PATH`
  write data to a file;
`get TYPES`
  read data from receiver;
`put TYPES`
  write data to receiver.

An example of a GPSMan script file could be

      # WPs from the receiver to file in GPSMan format
    getwrite WP GPSMan myWPs.gpsman
      # save them also in Shapefile format
    write Shapefile dim=3 pformat=UTM datum="Datum 73" \
          shape/myWPs

|  |  | The `exec` Command