Using the Teradata Access Module for Named Pipes with Unnamed Pipes and File Descriptor Devices on UNIX - Access Module

Teradata Tools and Utilities Access Module Reference

Product
Access Module
Release Number
16.10
Published
July 2017
Language
English (United States)
Last Update
2019-03-27
dita:mapPath
amk1499705096540.ditamap
dita:ditavalPath
amk1499705096540.ditaval
dita:id
B035-2425
lifecycle
previous
Product Category
Teradata Tools and Utilities
  1. Program the writer process to send its output to a file descriptor device greater than 2 (stderr), such as /dev/fd/4, as in the following FastExport script example:
    .EXPORT OUTFILE /dev/fd/4;
  2. Program the reader process to read from a file descriptor device greater than 2 (stderr), such as /dev/fd/3, as in the following FastLoad script example:
    axsmod np_axsmod.so “fallback_file=...”;
define file= /dev/fd/3...;
  3. Plumb the resulting file descriptors together using a shell pipeline, such as:
    fexp <fexp.cmds 4>&1 >fexp.out | \
fastload 3<&0 <flod.cmds >flod.log

    In this example UNIX diverts the FastExport standard output to the file fexp.out and:

    • fexp.out is the name of the diverted FastExport output file
    • flod.cmds is the name of the FastLoad job script file