Re: Printer output redirected to disc
Posted in 1994
From Michael C Smith: * * A co-worker has a 4GL program that he's developing/testing which * generates printed output. For his purposes, he doesn't really need * printed output, and would like to not waste paper. However, he does * need to review the output. Is there a way to redirect the output to * a disc file, rather than letting it go to a printer? We're running * in an HP-UX environment. If your program does 'OUTPUT TO PRINTER' in the report, then set the environment variable DBPRINT to: <sh/ksh> set DBPRINT="cat - > file.out" ; export DBPRINT <csh> setenv DBPRINT "cat - > file.out" Hope this helps, Robert Minter |Data Systems Support| \\\\\\_/// Programmer, Software Development | Orange, CA | ( _ _ ) internet: rob@dssmktg.com | Tel: 714.771.0454 | (| ^ |) bangpath: uunet.uu.net!dssmktg!rob| Fax: 714.771.3028 | \\`-'/ #include <disclaimer.h> SURF'S UP \\_/