Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!ut-emx!clyde From: clyde@ut-emx.uucp (Head UNIX Hacquer) Newsgroups: comp.sys.encore Subject: Re: lpd woes (UMAX4.3) Message-ID: <42434@ut-emx.uucp> Date: 12 Jan 91 04:20:25 GMT References: <9101112147.AA14556@ub.d.umn.edu> Organization: Moose & Squirrel Software Lines: 23 The program 'psnf' is really a shell script with multiple links (at least it is in our version of TranScript). This script can be modified to dump the stderr into the log file in the following manner: # # Redirect stderr to the log file by hand to get around the 4.3 LPD's handling # of error output. Use pcget to get the lf entry from printcap if available, # else use ${pname}-log in the current directory. # if [ -x /usr/local/etc/pcget ] ; then cwd=`pwd` pname=`basename $cwd` lf=`/usr/local/etc/pcget -P$pname lf` else wd=`pwd` lf=`basename $wd`-log fi exec 2>>$lf We have a script 'pcget' that does printcap lookups. If you use the convention of naming the log file "-log", then the basename trick can be used. We do this for all of our lpds, including that on our UMAX 4.3 system.