Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Feb 2002 14:57:55 -0500
From:      "Jeff Jeter" <gsfgf@hotmail.com>
To:        "Joe Clarke" <marcus@marcuscom.com>
Cc:        "FreeBSD Questions" <freebsd-questions@freebsd.org>
Subject:   Re: Linux shell scripts
Message-ID:  <OE38vgMcmfkwtboJmrY00009cbb@hotmail.com>
References:  <OE727nlT2NqFJ3sl3xb0000970f@hotmail.com><1014513894.57377.130.camel@osiris.sigterm.com><OE50DKpzxDPHprp5yLZ00009712@hotmail.com> <1014527895.6683.24.camel@shumai.marcuscom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_00FD_01C1BD43.A4014650
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

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
/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.

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
>
> >

------=_NextPart_000_00FD_01C1BD43.A4014650
Content-Type: application/octet-stream;
	name="turboprint.log"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="turboprint.log"


------=_NextPart_000_00FD_01C1BD43.A4014650
Content-Type: application/octet-stream;
	name="turboprint_lpr.log"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="turboprint_lpr.log"

=0A=
=0A=
-----------------------------=0A=
New print job Sun Feb 24 14:45:54 EST 2002 - command line:=0A=
-h bsd.my-net-space.net -n root -j testpage-letter.ps =
/var/spool/lpd/turbo2/acct=0A=
CONFIGNAME=3Dturbo2 CONFIGFILE=3D/var/spool/lpd/turbo2/tpprinter.cfg =
USERCONFIG=3D/root/.turboprint/turbo2.cfg=0A=
JOB=3Dtestpage-letter.ps DATA=3D LOGIN=3Droot =
HOST=3Dbsd.my-net-space.net HOMEDIR=3D/root TEMP=3D/tmp/tpfilter62656.tmp=0A=
filetype=3D/tmp/tpfilter62656.tmp: postscript document text conforming =
at level 3.0=0A=
output=3Ddevice=0A=
command lines=0A=
gs: gs -sDEVICE=3Dpcx24b -r600x600 -g4880x6945 -dSAFER -dNOPAUSE -dBATCH=0A=
tp: 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 - -=0A=
usegs: 1=0A=
complete: /usr/share/turboprint/lib/tpstdin --paste =
/tmp/tpfilter62656.tmp |  gs -sDEVICE=3Dpcx24b -r600x600 -g4880x6945 =
-dSAFER -dNOPAUSE -dBATCH -sOutputFile=3D>(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=0A=
------- before execution of pipe --------=0A=
GNU Ghostscript 6.52 (2001-10-20)=0A=
Copyright (C) 2001 artofcode LLC, Benicia, CA.  All rights reserved.=0A=
This software comes with NO WARRANTY: see the file COPYING for details.=0A=
Loading NimbusMonL-Regu font from =
/usr/local/share/ghostscript/fonts/n022003l.pfb... 1972664 601688 =
1863576 567247 0 done.=0A=
Loading NimbusSanL-Regu font from =
/usr/local/share/ghostscript/fonts/n019003l.pfb... 2012856 645936 =
1883672 454655 0 done.=0A=
Loading NimbusRomNo9L-Regu font from =
/usr/local/share/ghostscript/fonts/n021003l.pfb... 2073144 703253 =
1903768 466635 0 done.=0A=
Loading NimbusSanL-Bold font from =
/usr/local/share/ghostscript/fonts/n019004l.pfb... 2113336 747508 =
1923864 491893 0 done.=0A=
------- end of print job --------=0A=
=0A=
-----------------------------=0A=
New print job Sun Feb 24 14:50:59 EST 2002 - command line:=0A=
-h bsd.my-net-space.net -n root -j testpage-letter.ps =
/var/spool/lpd/turbo2/acct=0A=
CONFIGNAME=3Dturbo2 CONFIGFILE=3D/var/spool/lpd/turbo2/tpprinter.cfg =
USERCONFIG=3D/root/.turboprint/turbo2.cfg=0A=
JOB=3Dtestpage-letter.ps DATA=3D LOGIN=3Droot =
HOST=3Dbsd.my-net-space.net HOMEDIR=3D/root TEMP=3D/tmp/tpfilter62697.tmp=0A=
filetype=3D/tmp/tpfilter62697.tmp: postscript document text conforming =
at level 3.0=0A=
output=3Ddevice=0A=
command lines=0A=
gs: gs -sDEVICE=3Dpcx24b -r600x600 -g4880x6945 -dSAFER -dNOPAUSE -dBATCH=0A=
tp: 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 - -=0A=
usegs: 1=0A=
complete: /usr/share/turboprint/lib/tpstdin --paste =
/tmp/tpfilter62697.tmp |  gs -sDEVICE=3Dpcx24b -r600x600 -g4880x6945 =
-dSAFER -dNOPAUSE -dBATCH -sOutputFile=3D>(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=0A=
------- before execution of pipe --------=0A=
GNU Ghostscript 6.52 (2001-10-20)=0A=
Copyright (C) 2001 artofcode LLC, Benicia, CA.  All rights reserved.=0A=
This software comes with NO WARRANTY: see the file COPYING for details.=0A=
Loading NimbusMonL-Regu font from =
/usr/local/share/ghostscript/fonts/n022003l.pfb... 1972664 601688 =
1863576 567247 0 done.=0A=
Loading NimbusSanL-Regu font from =
/usr/local/share/ghostscript/fonts/n019003l.pfb... 2012856 645936 =
1883672 454655 0 done.=0A=
Loading NimbusRomNo9L-Regu font from =
/usr/local/share/ghostscript/fonts/n021003l.pfb... 2073144 703253 =
1903768 466635 0 done.=0A=
Loading NimbusSanL-Bold font from =
/usr/local/share/ghostscript/fonts/n019004l.pfb... 2113336 747508 =
1923864 491893 0 done.=0A=
------- end of print job --------=0A=
=0A=
-----------------------------=0A=
New print job Sun Feb 24 14:54:50 EST 2002 - command line:=0A=
-h bsd.my-net-space.net -n root -j testpage-letter.ps =
/var/spool/lpd/turbo2/acct=0A=
CONFIGNAME=3Dturbo2 CONFIGFILE=3D/var/spool/lpd/turbo2/tpprinter.cfg =
USERCONFIG=3D/root/.turboprint/turbo2.cfg=0A=
JOB=3Dtestpage-letter.ps DATA=3D LOGIN=3Droot =
HOST=3Dbsd.my-net-space.net HOMEDIR=3D/root TEMP=3D/tmp/tpfilter62745.tmp=0A=
filetype=3D/tmp/tpfilter62745.tmp: postscript document text conforming =
at level 3.0=0A=
output=3Ddevice=0A=
command lines=0A=
gs: gs -sDEVICE=3Dpcx24b -r600x600 -g4880x6945 -dSAFER -dNOPAUSE -dBATCH=0A=
tp: 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 - -=0A=
usegs: 1=0A=
complete: /usr/share/turboprint/lib/tpstdin --paste =
/tmp/tpfilter62745.tmp |  gs -sDEVICE=3Dpcx24b -r600x600 -g4880x6945 =
-dSAFER -dNOPAUSE -dBATCH -sOutputFile=3D>(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=0A=
------- before execution of pipe --------=0A=
GNU Ghostscript 6.52 (2001-10-20)=0A=
Copyright (C) 2001 artofcode LLC, Benicia, CA.  All rights reserved.=0A=
This software comes with NO WARRANTY: see the file COPYING for details.=0A=
Loading NimbusMonL-Regu font from =
/usr/local/share/ghostscript/fonts/n022003l.pfb... 1972664 601688 =
1863576 567247 0 done.=0A=
Loading NimbusSanL-Regu font from =
/usr/local/share/ghostscript/fonts/n019003l.pfb... 2012856 645936 =
1883672 454655 0 done.=0A=
Loading NimbusRomNo9L-Regu font from =
/usr/local/share/ghostscript/fonts/n021003l.pfb... 2073144 703253 =
1903768 466635 0 done.=0A=
Loading NimbusSanL-Bold font from =
/usr/local/share/ghostscript/fonts/n019004l.pfb... 2113336 747508 =
1923864 491893 0 done.=0A=
------- end of print job --------=0A=

------=_NextPart_000_00FD_01C1BD43.A4014650--

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?OE38vgMcmfkwtboJmrY00009cbb>