LDMSEND

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLE
SEE ALSO
DIAGNOSTICS

NAME

ldmsend - ldm data source example client

SYNOPSIS

ldmsend [−vx] [−l logdest] [-h remote] [-P port] [-s seqno] [-f feedtype] filename ...

DESCRIPTION

This program is an example of how to send data using ldm protocols. Its primary function is as a coding example. It may also be used to test the ldm server. It might also be useful to resend data after a downstream node has been offline. For most applications, the use of this program is deprecated in favor of pqinsert(1).

The program sends each file given on the command line as a separate ldm data product to the ldm server on remote. The file name is used as product identifier. The product feed type is specified by the −f option. The current time is used as product timestamp.

OPTIONS

−f feedtype

Asserts that the data being send has feed type feedtype. The default is ‘EXP’, indicating an experimental feedtype.

−h remote

Sends data to the ldm server on remote. The default is ‘localhost’.

−l logdest

Log to logdest. One of ’’ (system logging daemon), ’-’ (standard error stream), or file logdest. Default is the standard error stream if the process has a controlling terminal (i.e., the process isn’t a daemon); otherwise, either the LDM log file or the system logging daemon (execute this program with just the option ’-?’ to determine which).

−P port

The port on the remote sytem to which to connect. Only useful for LDM 6 protocols. The well-known LDM port is 388.

−s seqno

Sets the product sequence number associated with the first product to seqno. Subsequent products (files on the command line) are numbered sequentially. Defaults to zero.

−v

Verbose flag. If present, the log will contain a line for each product file that was sent.

−x

Requests that debugging information also be printed.

EXAMPLE

The command

ldmsend -v -h otherhost -f MCIDAS 92010100.are

will ship the file ‘92010100.are’ to ‘otherhost’ with feedtype ‘MCIDAS’. The ldm server on ‘otherhost’ should be configured to do something with a McIDAS product whose identifier is ‘92010100.are’.

SEE ALSO

pqinsert(1), ldmd(1), ldmd.conf(5)

DIAGNOSTICS

Error messages and log messages are written to the log file.