Piping Conventions

The Connect:Direct® for Microsoft Windows CLI supports the following piping conventions:

  • <filename.ext uses the file for input
  • >filename.ext uses the file for output

The following example demonstrates the Connect:Direct piping convention being used on a COMMANDS.TXT file containing the Connect:Direct commands you want to issue.

test     process snode=dsd.unix
cp       copy from (file=testfile.dat pnode)
to   (file=test.dat snode)
select statistics;
select process;

By typing the following command, you can execute all of the commands in the COMMANDS.TXT file.

direct < commands.txt
Note: A batch file can also be created containing the direct < commands.txt line if you want to execute these commands from a batch file.