Also, I noticed that when printing a pdf file, I get

Your printer job (frolik1.pdf) 
had the following errors and may not have printed:
foomatic-rip version 4.0.4.217 running...
called with arguments: '-w132', '-l66', '-i0', '-n', 'hans', '-j', 
'frolik1.pdf', '-h', 'stary.dhcp.fjfi.cvut.cz', 
'/etc/foomatic/HP-Color_LaserJet_2600n.ppd'
Parsing PPD file ...
Added option PageSize
Added option Quality
Added option PrinterType
Added option ColorMode
Added option BitsPerPlane
Added option ImageableArea
Added option PaperDimension
Added option InputSlot
Added option MediaType
Added option Duplex
Added option Copies
Added option ICM
Added option alignc
Added option alignm
Added option aligny
Added option NupOrient
Added option NupPages
Added option Font

Parameter Summary
-----------------

Spooler: lpd
Printer: 
Shell: /bin/ksh
PPD file: /etc/foomatic/HP-Color_LaserJet_2600n.ppd
ATTR file: 
Printer model: HP Color LaserJet 2600n Foomatic/foo2hp (recommended)
Options: frolik1.pdf 
Job title: frolik1.pdf
File(s) to be printed:
<STDIN>

Printing system options:
Pondering option 'frolik1.pdf'
Unknown boolean option "frolik1.pdf".
Options from the PPD file:

================================================

File: <STDIN>

================================================

Filetype: PDF
Driver does not understand PDF input, converting to PostScript
Process is dying with "Cannot find a writable temp dir.", exit stat 9
Cleaning up...


which further strenghtens my suspition that foomatic
has a problem with paths and CWDs ...

        Thank you

                Jan

On Jul 28 17:18:49, Jan Stary wrote:
> On Jul 28 13:55:06, Antoine Jacoutot wrote:
> > On Wed, 28 Jul 2010, Jan Stary wrote:
> > 
> > > Hello,
> > > 
> > > after an upgrade from 4.7 to current, my foomatic-filters
> > > stopped to work. This seems to be the same problem I had in
> > > http://marc.info/?l=openbsd-ports&amp;m=126579897431692&amp;w=2
> > > where I was kindly given a patch that solved it.
> > > 
> > > The patch no longer applies; there is another version
> > > of the port now, and also, the changes seem already have
> > > been put into filter.conf (namely, specifying the exepath
> > > and others).
> > > 
> > > When printing with 'echo foo | lpr' I get
> > > 
> > >   /bin/ksh: a2ps: not found
> > > 
> > > Obviously, I do have a2p installed. It seems to be
> > > a problem similar to the one before (unknown paths).
> > > 
> > > Please see full log and filter.conf below.
> > > The PPD file comes from the foo2zjs package.
> > 
> > 
> > Does putting the full path to a2ps in filter.conf help?
> 
> My filter.conf says
> 
>       textfilter: a2ps
>       exepath: /usr/local/bin:/usr/bin:/bin
> 
> My a2ps is installed at /usr/local/bin/a2ps,
> which is within the exepath. Why would foomatic
> need to have a full path specified?
> 
> Anyway, if I change it to
> 
>       textfilter: /usr/local/bin/a2ps
> 
> and run
> 
>       $ lpr
>       foo
>       ^D
> 
> I get the following in lpd-errs
> 
> 
> foomatic-rip version 4.0.4.217 running...
> called with arguments: '-w132', '-l66', '-i0', '-n', 'hans', '-j', 'stdin', 
> '-h', 'stary.dhcp.fjfi.cvut.cz', '/etc/foomatic/HP-Color_LaserJet_2600n.ppd'
> Parsing PPD file ...
> Added option PageSize
> Added option Quality
> Added option PrinterType
> Added option ColorMode
> Added option BitsPerPlane
> Added option ImageableArea
> Added option PaperDimension
> Added option InputSlot
> Added option MediaType
> Added option Duplex
> Added option Copies
> Added option ICM
> Added option alignc
> Added option alignm
> Added option aligny
> Added option NupOrient
> Added option NupPages
> Added option Font
> 
> Parameter Summary
> -----------------
> 
> Spooler: lpd
> Printer: 
> Shell: /bin/ksh
> PPD file: /etc/foomatic/HP-Color_LaserJet_2600n.ppd
> ATTR file: 
> Printer model: HP Color LaserJet 2600n Foomatic/foo2hp (recommended)
> Options: stdin 
> Job title: stdin
> File(s) to be printed:
> <STDIN>
> 
> Printing system options:
> Pondering option 'stdin'
> Unknown boolean option "stdin".
> Options from the PPD file:
> 
> ================================================
> 
> File: <STDIN>
> 
> ================================================
> 
> Filetype unknown, trying to convert ...
> 
> Starting converter for non-PostScript files
> Starting process "kid1" (generation 1)
> Starting process "kid2" (generation 2)
> file converter command: /usr/local/bin/a2ps
> Starting process "fileconverter" (generation 2)
> kid2: writing alreadyread
> kid2: Then read the rest from standard input
> kid2: Close out and stdin
> kid2 finished
> [stdin (plain): 1 page on 1 sheet]
> [Total: 1 page on 1 sheet] sent to the default printer
> fileconverter exited with status 0
> Filetype unknown, trying to convert ...
> 
> Starting converter for non-PostScript files
> Starting process "kid1" (generation 1)
> kid2 exited with status 0
> kid1 finished
> Starting process "kid2" (generation 2)
> file converter command: /usr/local/bin/a2ps
> Starting process "fileconverter" (generation 2)
> kid2: writing alreadyread
> kid2: Then read the rest from standard input
> kid2: Close out and stdin
> kid2 finished
> [stdin (plain): 0 pages on 0 sheets]
> [Total: 0 pages on 0 sheets] sent to the default printer
> fileconverter exited with status 0
> Filetype unknown, trying to convert ...
> 
> Starting converter for non-PostScript files
> Starting process "kid1" (generation 1)
> kid2 exited with status 0
> kid1 finished
> Starting process "kid2" (generation 2)
> file converter command: /usr/local/bin/a2ps
> Starting process "fileconverter" (generation 2)
> kid2: writing alreadyread
> kid2: Then read the rest from standard input
> kid2: Close out and stdin
> kid2 finished
> [stdin (plain): 0 pages on 0 sheets]
> [Total: 0 pages on 0 sheets] sent to the default printer
> fileconverter exited with status 0
> Filetype unknown, trying to convert ...
> 
> Starting converter for non-PostScript files
> Starting process "kid1" (generation 1)
> kid2 exited with status 0
> kid1 finished
> Starting process "kid2" (generation 2)
> file converter command: /usr/local/bin/a2ps
> Starting process "fileconverter" (generation 2)
> kid2: writing alreadyread
> kid2: Then read the rest from standard input
> kid2: Close out and stdin
> kid2 finished
> [stdin (plain): 0 pages on 0 sheets]
> [Total: 0 pages on 0 sheets] sent to the default printer
> fileconverter exited with status 0
> Filetype unknown, trying to convert ...
> 
> Starting converter for non-PostScript files
> Starting process "kid1" (generation 1)
> Process is dying with "Didn't think there would be that many child 
> processes... Exiting.
> ", exit stat 9
> Cleaning up...
> Killing kid1
> kid2 exited with status 0
> kid1 finished
> Starting process "kid2" (generation 2)
> file converter command: /usr/local/bin/a2ps
> Starting process "fileconverter" (generation 2)
> kid2: writing alreadyread
> kid2: Then read the rest from standard input
> kid2: Close out and stdin
> kid2 finished
> [stdin (plain): 0 pages on 0 sheets]
> [Total: 0 pages on 0 sheets] sent to the default printer
> fileconverter exited with status 0
> kid2 exited with status 0
> kid1 finished
> Killing kid1
> Killing kid1
> Killing kid1
> Jul 28 16:58:34 stary lpd[235]: lp: filter 'f' terminated (termsig=76)
> Jul 28 16:58:34 stary lpd[235]: lp: job could not be printed 
> (cfA044stary.dhcp.fjfi.cvut.cz)
> foomatic-rip version 4.0.4.217 running...
> called with arguments: '-w132', '-l66', '-i0', '-n', 'daemon', '-j', 'stdin', 
> '-h', 'stary.dhcp.fjfi.cvut.cz', '/etc/foomatic/HP-Color_LaserJet_2600n.ppd'
> Parsing PPD file ...
> Added option PageSize
> Added option Quality
> Added option PrinterType
> Added option ColorMode
> Added option BitsPerPlane
> Added option ImageableArea
> Added option PaperDimension
> Added option InputSlot
> Added option MediaType
> Added option Duplex
> Added option Copies
> Added option ICM
> Added option alignc
> Added option alignm
> Added option aligny
> Added option NupOrient
> Added option NupPages
> Added option Font
> 
> Parameter Summary
> -----------------
> 
> Spooler: lpd
> Printer: 
> Shell: /bin/ksh
> PPD file: /etc/foomatic/HP-Color_LaserJet_2600n.ppd
> ATTR file: 
> Printer model: HP Color LaserJet 2600n Foomatic/foo2hp (recommended)
> Options: stdin 
> Job title: stdin
> File(s) to be printed:
> <STDIN>
> 
> Printing system options:
> Pondering option 'stdin'
> Unknown boolean option "stdin".
> Options from the PPD file:
> 
> ================================================
> 
> File: <STDIN>
> 
> ================================================
> 
> Filetype: PostScript
> Reading PostScript input ...
> --> This document is DSC-conforming!
> 
> -----------
> Found: %%BeginProlog
> Inserting option code into "Prolog" section.
> Found: %%EndProlog
> 
> -----------
> Found: %%BeginSetup
> Inserting option code into "Setup" section.
> Found: %%EndSetup
> 
> -----------
> New page: %%Page: (1) 1
> 
> Found: %%BeginPageSetup
> Inserting option code into "PageSetup" section.
> Flushing FIFO.
> 
> Starting renderer with command: "foo2hp2600-wrapper -z0   -b1  -p1 -m1 -s7   
> -d1 -Oy=0 -Om=0 -Oc=0 -n1 -Gdefault "
> Starting process "kid3" (generation 1)
> 
> Closing renderer
> Starting process "kid4" (generation 2)
> Starting process "renderer" (generation 2)
> JCL: %-123...@pjl
> <job data> 
> 
> /bin/ksh: foo2hp2600-wrapper: not found
> renderer exited with status 127
> kid3 exited with status 1
> Process is dying with "Error closing renderer
> ", exit stat 1
> Cleaning up...
> Jul 28 16:58:35 stary lpd[235]: lp: filter 'f' terminated (termsig=76)
> Jul 28 16:58:35 stary lpd[235]: lp: job could not be printed 
> (cfA045stary.dhcp.fjfi.cvut.cz)
> foomatic-rip version 4.0.4.217 running...
> called with arguments: '-w132', '-l66', '-i0', '-n', 'daemon', '-j', 'stdin', 
> '-h', 'stary.dhcp.fjfi.cvut.cz', '/etc/foomatic/HP-Color_LaserJet_2600n.ppd'
> Parsing PPD file ...
> Added option PageSize
> Added option Quality
> Added option PrinterType
> Added option ColorMode
> Added option BitsPerPlane
> Added option ImageableArea
> Added option PaperDimension
> Added option InputSlot
> Added option MediaType
> Added option Duplex
> Added option Copies
> Added option ICM
> Added option alignc
> Added option alignm
> Added option aligny
> Added option NupOrient
> Added option NupPages
> Added option Font
> 
> Parameter Summary
> -----------------
> 
> Spooler: lpd
> Printer: 
> Shell: /bin/ksh
> PPD file: /etc/foomatic/HP-Color_LaserJet_2600n.ppd
> ATTR file: 
> Printer model: HP Color LaserJet 2600n Foomatic/foo2hp (recommended)
> Options: stdin 
> Job title: stdin
> File(s) to be printed:
> <STDIN>
> 
> Printing system options:
> Pondering option 'stdin'
> Unknown boolean option "stdin".
> Options from the PPD file:
> 
> ================================================
> 
> File: <STDIN>
> 
> ================================================
> 
> Filetype: PostScript
> Reading PostScript input ...
> --> This document is DSC-conforming!
> 
> -----------
> Found: %%BeginProlog
> Inserting option code into "Prolog" section.
> Found: %%EndProlog
> 
> -----------
> Found: %%BeginSetup
> Inserting option code into "Setup" section.
> Found: %%EndSetup
> Flushing FIFO.
> "Prolog" section is missing, inserting it.
> Inserting option code into "Prolog" section.
> "Setup" section is missing, inserting it.
> Inserting option code into "Setup" section.
> 
> Starting renderer with command: "foo2hp2600-wrapper -z0   -b1  -p1 -m1 -s7   
> -d1 -Oy=0 -Om=0 -Oc=0 -n1 -Gdefault "
> Starting process "kid3" (generation 1)
> 
> Closing renderer
> Starting process "kid4" (generation 2)
> Starting process "renderer" (generation 2)
> JCL: %-123...@pjl
> <job data> 
> 
> /bin/ksh: foo2hp2600-wrapper: not found
> renderer exited with status 127
> kid3 exited with status 1
> Process is dying with "Error closing renderer
> ", exit stat 1
> Cleaning up...
> Jul 28 16:58:35 stary lpd[235]: lp: filter 'f' terminated (termsig=76)
> Jul 28 16:58:35 stary lpd[235]: lp: job could not be printed 
> (cfA046stary.dhcp.fjfi.cvut.cz)
> foomatic-rip version 4.0.4.217 running...
> called with arguments: '-w132', '-l66', '-i0', '-n', 'daemon', '-j', 'stdin', 
> '-h', 'stary.dhcp.fjfi.cvut.cz', '/etc/foomatic/HP-Color_LaserJet_2600n.ppd'
> Parsing PPD file ...
> Added option PageSize
> Added option Quality
> Added option PrinterType
> Added option ColorMode
> Added option BitsPerPlane
> Added option ImageableArea
> Added option PaperDimension
> Added option InputSlot
> Added option MediaType
> Added option Duplex
> Added option Copies
> Added option ICM
> Added option alignc
> Added option alignm
> Added option aligny
> Added option NupOrient
> Added option NupPages
> Added option Font
> 
> Parameter Summary
> -----------------
> 
> Spooler: lpd
> Printer: 
> Shell: /bin/ksh
> PPD file: /etc/foomatic/HP-Color_LaserJet_2600n.ppd
> ATTR file: 
> Printer model: HP Color LaserJet 2600n Foomatic/foo2hp (recommended)
> Options: stdin 
> Job title: stdin
> File(s) to be printed:
> <STDIN>
> 
> Printing system options:
> Pondering option 'stdin'
> Unknown boolean option "stdin".
> Options from the PPD file:
> 
> ================================================
> 
> File: <STDIN>
> 
> ================================================
> 
> Filetype: PostScript
> Reading PostScript input ...
> --> This document is DSC-conforming!
> 
> -----------
> Found: %%BeginProlog
> Inserting option code into "Prolog" section.
> Found: %%EndProlog
> 
> -----------
> Found: %%BeginSetup
> Inserting option code into "Setup" section.
> Found: %%EndSetup
> Flushing FIFO.
> "Prolog" section is missing, inserting it.
> Inserting option code into "Prolog" section.
> "Setup" section is missing, inserting it.
> Inserting option code into "Setup" section.
> 
> Starting renderer with command: "foo2hp2600-wrapper -z0   -b1  -p1 -m1 -s7   
> -d1 -Oy=0 -Om=0 -Oc=0 -n1 -Gdefault "
> Starting process "kid3" (generation 1)
> 
> Closing renderer
> Starting process "kid4" (generation 2)
> Starting process "renderer" (generation 2)
> JCL: %-123...@pjl
> <job data> 
> 
> /bin/ksh: foo2hp2600-wrapper: not found
> renderer exited with status 127
> kid3 exited with status 1
> Process is dying with "Error closing renderer
> ", exit stat 1
> Cleaning up...
> Jul 28 16:58:35 stary lpd[235]: lp: filter 'f' terminated (termsig=76)
> Jul 28 16:58:35 stary lpd[235]: lp: job could not be printed 
> (cfA047stary.dhcp.fjfi.cvut.cz)
> foomatic-rip version 4.0.4.217 running...
> called with arguments: '-w132', '-l66', '-i0', '-n', 'daemon', '-j', 'stdin', 
> '-h', 'stary.dhcp.fjfi.cvut.cz', '/etc/foomatic/HP-Color_LaserJet_2600n.ppd'
> Parsing PPD file ...
> Added option PageSize
> Added option Quality
> Added option PrinterType
> Added option ColorMode
> Added option BitsPerPlane
> Added option ImageableArea
> Added option PaperDimension
> Added option InputSlot
> Added option MediaType
> Added option Duplex
> Added option Copies
> Added option ICM
> Added option alignc
> Added option alignm
> Added option aligny
> Added option NupOrient
> Added option NupPages
> Added option Font
> 
> Parameter Summary
> -----------------
> 
> Spooler: lpd
> Printer: 
> Shell: /bin/ksh
> PPD file: /etc/foomatic/HP-Color_LaserJet_2600n.ppd
> ATTR file: 
> Printer model: HP Color LaserJet 2600n Foomatic/foo2hp (recommended)
> Options: stdin 
> Job title: stdin
> File(s) to be printed:
> <STDIN>
> 
> Printing system options:
> Pondering option 'stdin'
> Unknown boolean option "stdin".
> Options from the PPD file:
> 
> ================================================
> 
> File: <STDIN>
> 
> ================================================
> 
> Filetype: PostScript
> Reading PostScript input ...
> --> This document is DSC-conforming!
> 
> -----------
> Found: %%BeginProlog
> Inserting option code into "Prolog" section.
> Found: %%EndProlog
> 
> -----------
> Found: %%BeginSetup
> Inserting option code into "Setup" section.
> Found: %%EndSetup
> Flushing FIFO.
> "Prolog" section is missing, inserting it.
> Inserting option code into "Prolog" section.
> "Setup" section is missing, inserting it.
> Inserting option code into "Setup" section.
> 
> Starting renderer with command: "foo2hp2600-wrapper -z0   -b1  -p1 -m1 -s7   
> -d1 -Oy=0 -Om=0 -Oc=0 -n1 -Gdefault "
> Starting process "kid3" (generation 1)
> 
> Closing renderer
> Starting process "kid4" (generation 2)
> Starting process "renderer" (generation 2)
> JCL: %-123...@pjl
> <job data> 
> 
> /bin/ksh: foo2hp2600-wrapper: not found
> renderer exited with status 127
> kid3 exited with status 1
> Process is dying with "Error closing renderer
> ", exit stat 1
> Cleaning up...
> Jul 28 16:58:35 stary lpd[235]: lp: filter 'f' terminated (termsig=76)
> Jul 28 16:58:35 stary lpd[235]: lp: job could not be printed 
> (cfA048stary.dhcp.fjfi.cvut.cz)
> foomatic-rip version 4.0.4.217 running...
> called with arguments: '-w132', '-l66', '-i0', '-n', 'daemon', '-j', 'stdin', 
> '-h', 'stary.dhcp.fjfi.cvut.cz', '/etc/foomatic/HP-Color_LaserJet_2600n.ppd'
> Parsing PPD file ...
> Added option PageSize
> Added option Quality
> Added option PrinterType
> Added option ColorMode
> Added option BitsPerPlane
> Added option ImageableArea
> Added option PaperDimension
> Added option InputSlot
> Added option MediaType
> Added option Duplex
> Added option Copies
> Added option ICM
> Added option alignc
> Added option alignm
> Added option aligny
> Added option NupOrient
> Added option NupPages
> Added option Font
> 
> Parameter Summary
> -----------------
> 
> Spooler: lpd
> Printer: 
> Shell: /bin/ksh
> PPD file: /etc/foomatic/HP-Color_LaserJet_2600n.ppd
> ATTR file: 
> Printer model: HP Color LaserJet 2600n Foomatic/foo2hp (recommended)
> Options: stdin 
> Job title: stdin
> File(s) to be printed:
> <STDIN>
> 
> Printing system options:
> Pondering option 'stdin'
> Unknown boolean option "stdin".
> Options from the PPD file:
> 
> ================================================
> 
> File: <STDIN>
> 
> ================================================
> 
> Filetype: PostScript
> Reading PostScript input ...
> --> This document is DSC-conforming!
> 
> -----------
> Found: %%BeginProlog
> Inserting option code into "Prolog" section.
> Found: %%EndProlog
> 
> -----------
> Found: %%BeginSetup
> Inserting option code into "Setup" section.
> Found: %%EndSetup
> Flushing FIFO.
> "Prolog" section is missing, inserting it.
> Inserting option code into "Prolog" section.
> "Setup" section is missing, inserting it.
> Inserting option code into "Setup" section.
> 
> Starting renderer with command: "foo2hp2600-wrapper -z0   -b1  -p1 -m1 -s7   
> -d1 -Oy=0 -Om=0 -Oc=0 -n1 -Gdefault "
> Starting process "kid3" (generation 1)
> 
> Closing renderer
> Starting process "kid4" (generation 2)
> Starting process "renderer" (generation 2)
> JCL: %-123...@pjl
> <job data> 
> 
> /bin/ksh: foo2hp2600-wrapper: not found
> renderer exited with status 127
> kid3 exited with status 1
> Process is dying with "Error closing renderer
> ", exit stat 1
> Cleaning up...
> Jul 28 16:58:35 stary lpd[235]: lp: filter 'f' terminated (termsig=76)
> Jul 28 16:58:35 stary lpd[235]: lp: job could not be printed 
> (cfA049stary.dhcp.fjfi.cvut.cz)
> 
> 
> 
> Please note that this long output comes from issuing just the
> one lpr command. Indeed, running lpq as this processes shows
> 
>       $ lpq
>       lp is ready and printing
>       Rank   Owner      Job  Files            Total Size
>       active hans       50   (standard input) 4 bytes
>       1st    daemon     51   (standard input) 14090 bytes
>       2nd    daemon     52   (standard input) 13654 bytes
>       3rd    daemon     53   (standard input) 13654 bytes
>       4th    daemon     54   (standard input) 13654 bytes
>       5th    daemon     55   (standard input) 13654 bytes
> 
> and it seems that the foomatic chain launches 6 print jobs
> - which start to die saying
> 
>       "Didn't think there would be that many child processes... Exiting."
> 
> and I also get 6 failure emails, one saying
> 
> Your printer job (stdin) 
> had the following errors and may not have printed:
> foomatic-rip version 4.0.4.217 running...
> called with arguments: '-w132', '-l66', '-i0', '-n', 'hans', '-j', 'stdin', 
> '-h', 'stary.dhcp.fjfi.cvut.cz', '/etc/foomatic/HP-Color_LaserJet_2600n.ppd'
> Parsing PPD file ...
> Added option PageSize
> Added option Quality
> Added option PrinterType
> Added option ColorMode
> Added option BitsPerPlane
> Added option ImageableArea
> Added option PaperDimension
> Added option InputSlot
> Added option MediaType
> Added option Duplex
> Added option Copies
> Added option ICM
> Added option alignc
> Added option alignm
> Added option aligny
> Added option NupOrient
> Added option NupPages
> Added option Font
> 
> Parameter Summary
> -----------------
> 
> Spooler: lpd
> Printer: 
> Shell: /bin/ksh
> PPD file: /etc/foomatic/HP-Color_LaserJet_2600n.ppd
> ATTR file: 
> Printer model: HP Color LaserJet 2600n Foomatic/foo2hp (recommended)
> Options: stdin 
> Job title: stdin
> File(s) to be printed:
> <STDIN>
> 
> Printing system options:
> Pondering option 'stdin'
> Unknown boolean option "stdin".
> Options from the PPD file:
> 
> ================================================
> 
> File: <STDIN>
> 
> ================================================
> 
> Filetype unknown, trying to convert ...
> 
> Starting converter for non-PostScript files
> Starting process "kid1" (generation 1)
> Starting process "kid2" (generation 2)
> file converter command: /usr/local/bin/a2ps
> Starting process "fileconverter" (generation 2)
> kid2: writing alreadyread
> kid2: Then read the rest from standard input
> kid2: Close out and stdin
> kid2 finished
> [stdin (plain): 1 page on 1 sheet]
> [Total: 1 page on 1 sheet] sent to the default printer
> fileconverter exited with status 0
> Filetype unknown, trying to convert ...
> 
> Starting converter for non-PostScript files
> Starting process "kid1" (generation 1)
> kid2 exited with status 0
> kid1 finished
> Starting process "kid2" (generation 2)
> file converter command: /usr/local/bin/a2ps
> Starting process "fileconverter" (generation 2)
> kid2: writing alreadyread
> kid2: Then read the rest from standard input
> kid2: Close out and stdin
> kid2 finished
> [stdin (plain): 0 pages on 0 sheets]
> [Total: 0 pages on 0 sheets] sent to the default printer
> fileconverter exited with status 0
> Filetype unknown, trying to convert ...
> 
> Starting converter for non-PostScript files
> Starting process "kid1" (generation 1)
> kid2 exited with status 0
> kid1 finished
> Starting process "kid2" (generation 2)
> file converter command: /usr/local/bin/a2ps
> Starting process "fileconverter" (generation 2)
> kid2: writing alreadyread
> kid2: Then read the rest from standard input
> kid2: Close out and stdin
> kid2 finished
> [stdin (plain): 0 pages on 0 sheets]
> [Total: 0 pages on 0 sheets] sent to the default printer
> fileconverter exited with status 0
> Filetype unknown, trying to convert ...
> 
> Starting converter for non-PostScript files
> Starting process "kid1" (generation 1)
> kid2 exited with status 0
> kid1 finished
> Starting process "kid2" (generation 2)
> file converter command: /usr/local/bin/a2ps
> Starting process "fileconverter" (generation 2)
> kid2: writing alreadyread
> kid2: Then read the rest from standard input
> kid2: Close out and stdin
> kid2 finished
> [stdin (plain): 0 pages on 0 sheets]
> [Total: 0 pages on 0 sheets] sent to the default printer
> fileconverter exited with status 0
> Filetype unknown, trying to convert ...
> 
> Starting converter for non-PostScript files
> Starting process "kid1" (generation 1)
> Process is dying with "Didn't think there would be that many child 
> processes... Exiting.
> ", exit stat 9
> Cleaning up...
> Killing kid1
> kid2 exited with status 0
> kid1 finished
> Starting process "kid2" (generation 2)
> file converter command: /usr/local/bin/a2ps
> Starting process "fileconverter" (generation 2)
> kid2: writing alreadyread
> kid2: Then read the rest from standard input
> kid2: Close out and stdin
> kid2 finished
> [stdin (plain): 0 pages on 0 sheets]
> [Total: 0 pages on 0 sheets] sent to the default printer
> fileconverter exited with status 0
> kid2 exited with status 0
> kid1 finished
> Killing kid1
> Killing kid1
> Killing kid1
> 
> 
> and the other 5 just saying
> 
>       Your printer job (stdin)
>       could not be printed
> 
> (Contrast this with doing "echo foo | a2ps"
> which results in just one print job.) I suppose
> this is because the foomatic chain needs to hand
> over the stdin input to many tools in sequence,
> as spposed to getting Postscript already processed
> from a2ps.)
> 
> 
> Anyway, specifying the full path of a2ps gets me just a bit further,
> the print job(s) fail with
> 
> 
> 
> Jul 28 17:13:21 stary lpd[20951]: stary.dhcp.fjfi.cvut.cz requests printjob lp
> Jul 28 17:13:22 stary foo2hp2600-wrapper: foo2hp2600-wrapper -z0 -b1 -p1 -m1 
> -s7 -d1 -Oy=0 -Om=0 -Oc=0 -n1 -Gdefault
> Jul 28 17:13:22 stary foo2hp2600-wrapper: gs -sPAPERSIZE=letter -g5100x6600 
> -r600x600 -sDEVICE=pbmraw -dCOLORSCREEN -dMaxBitmap=500000000  
> Jul 28 17:13:22 stary foo2hp2600-wrapper: foo2hp -r600x600 -g5100x6600 -p1 
> -m1 -n1 -d1 -s7  -b1 -u 86x80 -l 86x80   -O,,,0     
> foomatic-rip version 4.0.4.217 running...
> called with arguments: '-w132', '-l66', '-i0', '-n', 'hans', '-j', 'stdin', 
> '-h', 'stary.dhcp.fjfi.cvut.cz', '/etc/foomatic/HP-Color_LaserJet_2600n.ppd'
> Parsing PPD file ...
> Added option PageSize
> Added option Quality
> Added option PrinterType
> Added option ColorMode
> Added option BitsPerPlane
> Added option ImageableArea
> Added option PaperDimension
> Added option InputSlot
> Added option MediaType
> Added option Duplex
> Added option Copies
> Added option ICM
> Added option alignc
> Added option alignm
> Added option aligny
> Added option NupOrient
> Added option NupPages
> Added option Font
> 
> Parameter Summary
> -----------------
> 
> Spooler: lpd
> Printer: 
> Shell: /bin/ksh
> PPD file: /etc/foomatic/HP-Color_LaserJet_2600n.ppd
> ATTR file: 
> Printer model: HP Color LaserJet 2600n Foomatic/foo2hp (recommended)
> Options: stdin 
> Job title: stdin
> File(s) to be printed:
> <STDIN>
> 
> Printing system options:
> Pondering option 'stdin'
> Unknown boolean option "stdin".
> Options from the PPD file:
> 
> ================================================
> 
> File: <STDIN>
> 
> ================================================
> 
> Filetype: PostScript
> Reading PostScript input ...
> --> This document is DSC-conforming!
> 
> -----------
> Found: %%BeginProlog
> Inserting option code into "Prolog" section.
> Found: %%EndProlog
> 
> -----------
> Found: %%BeginSetup
> Inserting option code into "Setup" section.
> Found: %%BeginFeature: *Tumble False
> Unknown option Tumble=False found in the job
> Found: %%BeginFeature: *Duplex True
>    Option: Duplex=True
>  --> Invalid option setting found in job
> Found: %%EndSetup
> 
> -----------
> New page: %%Page: (1) 1
> 
> Found: %%BeginPageSetup
> Inserting option code into "PageSetup" section.
> Flushing FIFO.
> 
> Starting renderer with command: "foo2hp2600-wrapper -z0   -b1  -p1 -m1 -s7   
> -d1 -Oy=0 -Om=0 -Oc=0 -n1 -Gdefault "
> Starting process "kid3" (generation 1)
> Starting process "kid4" (generation 2)
> Starting process "renderer" (generation 2)
> JCL: %-123...@pjl
> <job data> 
> 
> expr: syntax error
> expr: syntax error
> expr: syntax error
> Alignment error ',,,0' for -O c,m,y,k
> 
> Closing renderer
> renderer exited with status 0
> kid4 exited with status 0
> kid3 finished
> kid3 exited with status 0
> 
> Closing foomatic-rip.
> 
> 
> Please also note that foo2hp2600-wrapper is installed at
> /usr/local/bin/foo2hp2600-wrapper. Why is it that
> foomatic finds this, but not a2ps? The PPD file only says
> 
>       *FoomaticRIPCommandLine: "foo2hp2600-wrapper %A"
> 
> (and does not specify the full path).
> 
> 
>       Thank you for your time
> 
> 
> > 
> > > Jul 28 13:37:42 stary lpd[2972]: stary.dhcp.fjfi.cvut.cz requests 
> > > printjob lp
> > > foomatic-rip version 4.0.4.217 running...
> > > called with arguments: '-w132', '-l66', '-i0', '-n', 'hans', '-j', 
> > > 'stdin', '-h', 'stary.dhcp.fjfi.cvut.cz', 
> > > '/etc/foomatic/HP-Color_LaserJet_2600n.ppd'
> > > Parsing PPD file ...
> > > Added option PageSize
> > > Added option Quality
> > > Added option PrinterType
> > > Added option ColorMode
> > > Added option BitsPerPlane
> > > Added option ImageableArea
> > > Added option PaperDimension
> > > Added option InputSlot
> > > Added option MediaType
> > > Added option Duplex
> > > Added option Copies
> > > Added option ICM
> > > Added option alignc
> > > Added option alignm
> > > Added option aligny
> > > Added option NupOrient
> > > Added option NupPages
> > > Added option Font
> > > 
> > > Parameter Summary
> > > -----------------
> > > 
> > > Spooler: lpd
> > > Printer: 
> > > Shell: /bin/ksh
> > > PPD file: /etc/foomatic/HP-Color_LaserJet_2600n.ppd
> > > ATTR file: 
> > > Printer model: HP Color LaserJet 2600n Foomatic/foo2hp (recommended)
> > > Options: stdin 
> > > Job title: stdin
> > > File(s) to be printed:
> > > <STDIN>
> > > 
> > > Printing system options:
> > > Pondering option 'stdin'
> > > Unknown boolean option "stdin".
> > > Options from the PPD file:
> > > 
> > > ================================================
> > > 
> > > File: <STDIN>
> > > 
> > > ================================================
> > > 
> > > Filetype unknown, trying to convert ...
> > > 
> > > Starting converter for non-PostScript files
> > > Starting process "kid1" (generation 1)
> > > Starting process "kid2" (generation 2)
> > > file converter command: a2ps
> > > Starting process "fileconverter" (generation 2)
> > > kid2: writing alreadyread
> > > kid2: Then read the rest from standard input
> > > kid2: Close out and stdin
> > > kid2 finished
> > > /bin/ksh: a2ps: not found
> > > fileconverter exited with status 127
> > > Filetype unknown, trying to convert ...
> > > 
> > > Starting converter for non-PostScript files
> > > Starting process "kid1" (generation 1)
> > > Starting process "kid2" (generation 2)
> > > file converter command: a2ps
> > > Starting process "fileconverter" (generation 2)
> > > kid2: writing alreadyread
> > > kid2: Then read the rest from standard input
> > > kid2: Close out and stdin
> > > kid2 finished
> > > /bin/ksh: a2ps: not found
> > > fileconverter exited with status 127
> > > Filetype unknown, trying to convert ...
> > > 
> > > Starting converter for non-PostScript files
> > > Starting process "kid1" (generation 1)
> > > Starting process "kid2" (generation 2)
> > > file converter command: a2ps
> > > Starting process "fileconverter" (generation 2)
> > > kid2: writing alreadyread
> > > kid2: Then read the rest from standard input
> > > kid2: Close out and stdin
> > > kid2 finished
> > > /bin/ksh: a2ps: not found
> > > fileconverter exited with status 127
> > > Filetype unknown, trying to convert ...
> > > 
> > > Starting converter for non-PostScript files
> > > Starting process "kid1" (generation 1)
> > > Starting process "kid2" (generation 2)
> > > file converter command: a2ps
> > > Starting process "fileconverter" (generation 2)
> > > kid2: writing alreadyread
> > > kid2: Then read the rest from standard input
> > > kid2: Close out and stdin
> > > kid2 finished
> > > /bin/ksh: a2ps: not found
> > > fileconverter exited with status 127
> > > Filetype unknown, trying to convert ...
> > > 
> > > Starting converter for non-PostScript files
> > > Starting process "kid1" (generation 1)
> > > Process is dying with "Didn't think there would be that many child 
> > > processes... Exiting.
> > > ", exit stat 9
> > > Cleaning up...
> > > Killing kid1
> > > Starting process "kid2" (generation 2)
> > > file converter command: a2ps
> > > Starting process "fileconverter" (generation 2)
> > > kid2: writing alreadyread
> > > kid2: Then read the rest from standard input
> > > kid2: Close out and stdin
> > > kid2 finished
> > > /bin/ksh: a2ps: not found
> > > fileconverter exited with status 127
> > > Killing kid1
> > > Killing kid1
> > > Killing kid1
> > > Jul 28 13:38:15 stary lpd[2972]: lp: filter 'f' exited (retcode=9)
> > > Jul 28 13:38:16 stary lpd[2972]: mail sent to user hans about job stdin 
> > > on printer lp (FILTERERR)
> > > Jul 28 13:38:16 stary lpd[2972]: lp: job could not be printed 
> > > (cfA030stary.dhcp.fjfi.cvut.cz)
> > > 
> > > 
> > > 
> > > # This file allows you to configure the "foomatic-rip" filter.
> > > 
> > > # Uncomment the lines where you want to do a change and enter the
> > > # desired value.
> > > 
> > > # Enter here your personal command for converting non-PostScript files
> > > # (especially text) to PostScript. Supported commands are "a2ps",
> > > # "enscript" or "mpage". Command line options will be automatically
> > > # set by "foomatic-rip".
> > > 
> > > textfilter: a2ps
> > > 
> > > # Set debug to 1 to enable the debug logfile for "foomatic-rip"; it
> > > # will appear as /tmp/foomatic-rip.log It will contain status info of
> > > # the filtering process and the renderer's (usually GhostScript's)
> > > # stderr output. 
> > > 
> > > # WARNING: This logfile is a security hole; do not use in production.
> > > 
> > > # debug: 0
> > > 
> > > ### CUPS only:
> > > 
> > > # Set to 0 to suppress inserting postscript code for accounting.
> > > 
> > > # ps_accounting: 1
> > > 
> > > ### General Configuration
> > > 
> > > # Set echo to the path to an echo program that uses echo -n
> > > 
> > > echo: /bin/echo
> > > 
> > > # set gspath to the GhostScript to be used by foomatic
> > > gspath: /usr/local/bin/gs
> > > 
> > > # Set the PATH value to be used by foomatic-rip:
> > > exepath: /usr/local/bin:/usr/bin:/bin
> > > 
> > > # Set the directories in which foomatic-rip should search for CUPS 
> > > filters:
> > > cupsfilterpath: /usr/local/libexec/cups/filter
> > > 
> > > # Set the preferred shell to use when executing FoomaticRIPCommandLine and
> > > # friends.  Several PPD files use shell constructs that require a more
> > > # modern shell like bash, zsh, or ksh.
> > > 
> > > preferred_shell: /bin/ksh
> > > 
> > > 
> > 
> > -- 
> > Antoine

Reply via email to