From owner-freebsd-questions Mon Nov 9 23:01:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA19675 for freebsd-questions-outgoing; Mon, 9 Nov 1998 23:01:39 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ds9.dreamhaven.org (dt091n3e.san.rr.com [204.210.47.62]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id XAA19665 for ; Mon, 9 Nov 1998 23:01:38 -0800 (PST) (envelope-from data@dreamhaven.net) Received: (qmail 18978 invoked by uid 1010); 10 Nov 1998 07:01:22 -0000 Date: Mon, 9 Nov 1998 23:01:22 -0800 (PST) From: Bryce Newall X-Sender: data@ds9.dreamhaven.org To: FreeBSD Questions List Subject: APS Filter/JetDirect report Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG It finally works!!!!!!!!!! Now that the excitement is done, please allow me to describe what was required to get it going: 1) Thanks to some people on this list, reading the APSFilter FAQ, and some insights from (of all places) one of the Linux How-To's, I got a working printcap. In addition to changing the "lp" entries to point to /dev/null, I needed to add an additional printcap entry as follows: remote|remotep|JetDirect EX Plus:\ :lp=/dev/null:\ :rm=runabout:\ :rp=raw:\ :sd=/var/spool/lpd/remote:\ :lf=/var/spool/lpd/remote/log:\ :mx#0:\ :sh: where "runabout" is the hostname of my JetDirect. Once that was done, I tried another printout.. a simple one, my .login file. Instead of getting my .login, though, I got a single line printed out on the printer that said: -r must be followed by or x Which leads to... 2) Upon looking at the apsfilter script, I found where it was trying to add the -r parameter in this section of the script: (this is kind of long) if [ -z "$GS_RESOL" ] then # default is _not_ to fiddle around with # ghostscripts printer driver resolution PRINT_PS=" gs \ -q \ -sDEVICE=${PRINTER} \ -sPAPERSIZE=${PAPERSIZE} \ -dNOPAUSE \ -dSAFER \ -sOutputFile=- \ ${GS_FEATURES} \ ${PS_INIT} \ - " else # if we urgently need another resolution # then we use it (selectable in /etc/apsfilterrc # or in $HOME/apsfilterrc) PRINT_PS=" gs \ -q \ -r${GS_RESOL} \ -sDEVICE=${PRINTER} \ -sPAPERSIZE=${PAPERSIZE} \ -dNOPAUSE \ -dSAFER \ -sOutputFile=- \ ${GS_FEATURES} \ ${PS_INIT} \ - " fi I don't know how it's happening, but somehow the GS_RESOL variable is being set, but to a blank value, so that it's trying to call apsfilter with the -r option, but nothing after it. The solution was to simply pull out the line with the -r, and after that, I'm now printing and having a great time of it! I realize this mail is probably somewhat superfluous, but at least if anyone has trouble with this in the future, well... here's your solution! :) And who knows, maybe this will end up in the mailing list archives. Thanks again to everyone for their help on this!! ********************************************************************** * Bryce Newall * Email: data@dreamhaven.net * * WWW: http://home.dreamhaven.net/~data * * "Insanity takes its toll. Please have exact change." * ********************************************************************** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message