NETCOPY

This tool allows parameter-controlled network file transfers to be performed. The files to transfer are specified with a filemask containing wildcard characters. The filemask should be as specific as possible to avoid undesired results. The destination for the copy must be a directory. The SFTP file transfer protocol is used for all transfers, so PKI keys are expected to be in place to allow copying without supplying a password (see UNIX ssh-keygen man page for details on key set-up). All transfers are done in BINARY mode (since most SFTP implementations only support that mode), so text file transfers to/from Windows systems for files using CR-LF delimiters are not properly supported.

Parameters can be supplied to the tool either on the command line, or from a disk file (i.e. a resource file). The tool can be run within an OPUS pipeline by invoking it from a shell script and running the shell script within the pipeline via the OPUS XPOLL facility.

File transfers are, by default, confirmed by listing the files AFTER the copy completes in the destination directory. If the transfer is confirmed, the original source files can be deleted if the DELETE_AFTER_COPY option is selected.

Usage: netcopy -pa pathfile |

If either the pathfile or parmfile parameter is supplied, the rest of the parameters are ignored on the command line, as they are obtained from the provided file instead.

The flags can be specified in any order by any number of unique characters (e.g. -de, -del, and -delete are treated equally).

Context

Inputs

Outputs

Constraints