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

[-- Attachment #1 --]
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
>
> >

[-- Attachment #2 --]

[-- Attachment #3 --]


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

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

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

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?OE38vgMcmfkwtboJmrY00009cbb>