16.10 - Using the Teradata Access Module for Named Pipes with Named Pipes 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. 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.