From owner-freebsd-questions Sun Feb 24 13:11:44 2002 Delivered-To: freebsd-questions@freebsd.org Received: from creme-brulee.marcuscom.com (rdu57-28-046.nc.rr.com [66.57.28.46]) by hub.freebsd.org (Postfix) with ESMTP id 6DD4D37B404 for ; Sun, 24 Feb 2002 13:11:37 -0800 (PST) Received: from shumai.marcuscom.com (marcus@shumai.marcuscom.com [192.168.1.4]) by creme-brulee.marcuscom.com (8.11.6/8.11.6) with ESMTP id g1OLAL887506; Sun, 24 Feb 2002 16:10:21 -0500 (EST) (envelope-from marcus@marcuscom.com) Subject: Re: Linux shell scripts From: Joe Clarke To: Jeff Jeter Cc: FreeBSD User Questions List In-Reply-To: References: <1014513894.57377.130.camel@osiris. sigterm.com> <1014527895.6683.24.camel@shumai.marcuscom.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 24 Feb 2002 16:11:35 -0500 Message-Id: <1014585096.872.3.camel@shumai.marcuscom.com> Mime-Version: 1.0 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 2002-02-24 at 14:57, Jeff Jeter wrote: > Thanks, the head call now works. Bash was in /usr/local/bin and tpfilter > was looking in /bin. > > Now i'm getting errors i can't make sense of. attached is the log file. > > Output: > bsd# turboprint -Ptp0 testpage-letter.ps output.prn > turboprint - executing tpfilter manually > printer name: tp0 > spool directory: turbo2 > *** calling tpfilter now *** > elf_load_section: truncated ELF file This doesn't look good. I assume this application uses Linux binaries. If so, make sure the linux kernel object is loaded, and you have the linux_base package installed. You may also need to brandelf some of the tprint executables. > /usr/share/turboprint/lib/tpfilter: line 1: 62765 Abort trap > tpprint -s8134x11575 -p-134x0 -a0 -v2 -dCanon_S300 -c0 -q1 -m0 -g2 -f4 -i0 - > o0 -u0 -t0 -y1 -bt1x0 -l/var/log/turboprint_lpr.log - - > /usr/share/turboprint/lib/tpfilter: line 1: 62762 Done > /usr/share/turboprint/lib/tpstdin --paste /tmp/tpfilter62745.tmp > 62763 Broken pipe | > gs -sDEVICE=pcx24b -r600x600 -g4880x6945 -dSAFER -dNOPAUSE -dBATCH -sOutputF > ile=>(tpprint -s8134x11575 -p-134x0 -a0 -v2 -dCanon_S300 -c0 -q1 -m0 -g2 -f4 > -i0 -o0 -u0 -t0 -y1 -bt1x0 -l/var/log/turboprint_lpr.log - - ) - > >>/var/log/turboprint_lpr.log > *** tpfilter finished *** > the output file may be copied to the printer now > for example: cat [OUTPUTFILE] > /dev/lp0 > bsd# > > I looked at apsfilter, but it requioeres ghostscript drivers and i can't > find any for my Canon S300. Probobly b/c its so new. I've only used HP printers with FreeBSD myself, but is there a similar printer GS knows about that may work for you? Joe > > Hopefully this e-mail won't be in MIME format. > Jeff Jeter > > ----- Original Message ----- > From: "Joe Clarke" > To: "Jeff Jeter" > Cc: "Stuart Tanner" ; "FreeBSD User Questions List" > > Sent: Sunday, February 24, 2002 12:18 AM > Subject: Re: Linux shell scripts > > > > On Sat, 2002-02-23 at 21:20, Jeff Jeter wrote: > > > Thanks, installing bash fixed one. > > > The other i referred to in an earlier post regardint turboprint. It is > > > generated by another script which works fine. attached is the generator > > > script. > > > > > > Here is the output: > > > > > > I don't really know a lot about this script, but.... > > > > > > > > OUTPUT: > > > bsd# turboprint -Plp testpage-a4.ps output.prn > > > turboprint - executing tpfilter manually > > > printer name: lp > > > spool directory: turbo2 > > > *** calling tpfilter now *** > > > head: illegal line count -- 1c > > > > I think changing the head call to: > > > > head -c 1 > > > > Will fix this error. > > > > > eval: 1: Syntax error: "(" unexpected > > > > Make sure you're using this script with the bash2 port. You'll probably > > need bash 2.04 or later to run this script successfully. > > > > > *** tpfilter finished *** > > > the output file may be copied to the printer now > > > for example: cat [OUTPUTFILE] > /dev/lp0 > > > bsd# > > > > Have you looked at /usr/ports/print/apsfilter? This is a much more > > sophisticated printing system that works out of the box on FreeBSD. > > I've been using it for some time now, and I love it. > > > > Joe > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message