16.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

prodname
Access Module
vrm_release
16.10
created_date
July 2017
category
Programming Reference
featnum
B035-2425-077K
  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