cdds_savepr - redirects stderr & stdout to a printfile

SYNOPSIS

#include "cdds.h"

int cdds_savepr();

DESCRIPTION

cdds_savepr() reroutes all stderr and stdout permanently to the opened print file. This is typically useful, for example, by CM5 programs to force all output to be written to the print file and no output is written to the terminal. This will keep a job running in background even if the initiating terminal goes down. All program output can be checked out in the print file. This is not too useful since the user can control this directly from the command line. The return value is always 0.

AUTHOR

Jerry Ehlers, BP America (May 2003)