16.10 - Using the Teradata Access Module for Named Pipes with Named Pipes on UNIX - Access Module

Teradata Tools and Utilities Access Module Reference

Access Module
July 2017
Programming Reference
  1. Use the UNIX mknod command with the p option to create a named pipe. In the following example, /tmp/mypipe is the name of the pipe:
    /sbin/mknod /tmp/mypipe p
  2. Program the writer process to send its output stream to the named pipe, as in the following FastExport script example:
    .EXPORT OUTFILE /tmp/mypipe;
  3. Program the reader process to read from the named pipe as in the following FastLoad script example:
    axsmod np_axsmod.so “fallback_directory=...”;
define file= /tmp/mypipe;
  4. Launch both the writer and the reader processes, as in the following example where flod.cmds is the name of the FastLoad job script file:
    fexp <fexp.cmd & fastload <flod.cmds &

    In this example, UNIX connects both processes through the named pipe /tmp/mypipe.