Examples ‑ Redirection of Inputs and Outputs
The following examples show various ways to redirect stdin and stdout for the UNIX system.
Example
This example specifies both an input file and an output file. The Teradata TPump script
is in
/home/tpuser/tests/test1 and the job output is written to /home/tpuser/tests/out1.
tpump </home/tpuser/tests/test1 >/home/tpuser/tests/out1
Example
This example specifies only an input file. The Teradata TPump script is in /home/tpuser/tests/test1 and the job output is written to stdout, which ordinarily would be the terminal.
tpump </home/tpuser/tests/test1
Example
This example specifies only an output file. Enter the TPump script via stdin, normally at the terminal. When input is complete, type Control
‑D
to indicate end‑of‑file. Type Control
‑D
by simultaneously pressing the Control key and the letter D. The job output is written
to /home/tpuser/tests/out1.
tpump >/home/tpuser/tests/out1
Example
This example specifies neither an input nor an output file. Teradata TPump commands are typed at a terminal via stdin and job output is written to the terminal via stdout.
tpump