NOAAPORT
Functions
readnoaaport.c File Reference

This file contains the code for the readnoaaport(1) program. More...

Functions

int main (const int argc, char *const argv[])
 Reads NOAAPORT data from a shared-memory FIFO or a file, creates LDM data-products, and inserts the data-products into an LDM product-queue. More...
 

Detailed Description

This file contains the code for the readnoaaport(1) program.

This program reads NOAAPORT data from a shared-memory FIFO or a file, creates LDM data-products, and writes the data-products into an LDM product-queue.

Function Documentation

◆ main()

int main ( const int  argc,
char *const  argv[] 
)

Reads NOAAPORT data from a shared-memory FIFO or a file, creates LDM data-products, and inserts the data-products into an LDM product-queue.

Usage:

readnoaaport [-nvx] [-q <em>queue</em>] [-u <em>n</em>] [-m mcastAddr] [path]\n

Where:

-l log

Log to log. if log is "-", then logging occurs to the standard error stream; otherwise, log is the pathname of a file to which logging will occur. If not specified, then log messages will go to the system logging daemon.

-m mcastAddr

Use the shared-memory FIFO associated with the UDP multicast address mcastAddr.

-n

Log messages of level NOTICE and higher priority.

-q queue

Use queue as the pathname of the LDM product-queue. The default is to use the default LDM pathname of the product-queue.

-u n

If logging is to the system logging daemon, then use facility localn. The default is to use the LDM facility.

-v

Log messages of level INFO and higher priority. Each data-product will generate a log message.

-x

Log messages of level DEBUG and higher priority.

path
Pathname of the file from which to read data. The default is to use a shared-memory FIFO.
Return values
0if successful.
1if an error occurred. At least one error-message is logged.