17.10 - 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
17.10
Published
October 2021
Language
English (United States)
Last Update
2021-11-02
dita:mapPath
uur1608578381725.ditamap
dita:ditavalPath
obe1474387269547.ditaval
  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