Date: 24 Feb 2002 16:11:35 -0500 From: Joe Clarke <marcus@marcuscom.com> To: Jeff Jeter <gsfgf@hotmail.com> Cc: FreeBSD User Questions List <freebsd-questions@freebsd.org> Subject: Re: Linux shell scripts Message-ID: <1014585096.872.3.camel@shumai.marcuscom.com> In-Reply-To: <OE38vgMcmfkwtboJmrY00009cbb@hotmail.com> References: <OE727nlT2NqFJ3sl3xb0000970f@hotmail.com><1014513894.57377.130.camel@osiris. sigterm.com><OE50DKpzxDPHprp5yLZ00009712@hotmail.com> <1014527895.6683.24.camel@shumai.marcuscom.com> <OE38vgMcmfkwtboJmrY00009cbb@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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" <marcus@marcuscom.com> > To: "Jeff Jeter" <gsfgf@hotmail.com> > Cc: "Stuart Tanner" <stuart@sigterm.com>; "FreeBSD User Questions List" > <freebsd-questions@freebsd.org> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1014585096.872.3.camel>