Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Mar 2013 13:27:58 GMT
From:      Norbert Koch <nkoch@demig.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/177396: foomatic-rip needs both inputfile and stdin
Message-ID:  <201303261327.r2QDRwV5091731@red.freebsd.org>
Resent-Message-ID: <201303261330.r2QDU2wD014579@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         177396
>Category:       ports
>Synopsis:       foomatic-rip needs both inputfile and stdin
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 26 13:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Norbert Koch
>Release:        9.1-RELEASE
>Organization:
>Environment:
>Description:
I try to use foomatic-rip for spooler less printing.

1. "foomatic-rip --ppd ppdfile -v inputfile"
Foomatic hangs waiting for stdin and continues with Ctrl-D.

2. "foomatic-rip --ppd ppdfile -v <inputfile"
Foomatic-rip seems to fail in calling a2ps as input filter.

Log:
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
 Parsing PPD file ...
 Added option Resolution
 Added option PageSize
 Added option Model
 Added option PrintoutMode
 Added option InputSlot
 Added option ImageableArea
 Added option PaperDimension
 Added option Duplex
 Added option Quality
 Added option Font
 
 Parameter Summary
 -----------------
 
 Spooler: direct
 Printer: 
 Shell: /bin/sh
 PPD file: /usr/local/etc/foomatic/direct/lj1100.ppd
 ATTR file: 
 Printer model: HP LaserJet 1100 Foomatic/hpijs (recommended)
 Options: 
 Job title: nk@entw-pr2.demig.intra
 File(s) to be printed:
 <STDIN>
 
 Printing system options:
 Options from the PPD file:
 
 ================================================
 
 File: <STDIN>
 
 ================================================
 
 Filetype unknown, trying to convert ...
 
 Starting converter for non-PostScript files
 Starting process "kid1" (generation 1)
 Filetype unknown, trying to convert ...
 
 Starting converter for non-PostScript files
 Starting process "kid2" (generation 2)
 Starting process "kid1" (generation 1)
 file converter command: a2ps -1 --medium=Letterdj --center-title=nk@entw-pr2.demig.intra -o -
 kid2: writing alreadyread
 Filetype unknown, trying to convert ...
 Starting process "kid2" (generation 2)
 
 Starting converter for non-PostScript files
 Starting process "kid1" (generation 1)
 kid2: Then read the rest from standard input
 kid2: Close out and stdin
 Starting process "fileconverter" (generation 2)
 kid2 finished
 file converter command: a2ps -1 --medium=Letterdj --center-title=nk@entw-pr2.demig.intra -o -
 Starting process "fileconverter" (generation 2)
 Filetype unknown, trying to convert ...
 
 Starting converter for non-PostScript files
 Starting process "kid1" (generation 1)
 Starting process "kid2" (generation 2)
 Filetype unknown, trying to convert ...
 kid2: writing alreadyread
 kid2: Then read the rest from standard input
 Starting process "kid2" (generation 2)
 kid2: Close out and stdin
 file converter command: a2ps -1 --medium=Letterdj --center-title=nk@entw-pr2.demig.intra -o -
 Starting process "fileconverter" (generation 2)
 kid2 finished
 file converter command: a2ps -1 --medium=Letterdj --center-title=nk@entw-pr2.demig.intra -o -
 Starting process "fileconverter" (generation 2)
 kid2: writing alreadyread
 kid2: Then read the rest from standard input
 kid2: Close out and stdin
 
 Starting converter for non-PostScript files
 kid2: writing alreadyread
 kid2 finished
 kid2: Then read the rest from standard input
 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
 Process is dying with "Caught termination signal: Job canceled
 ", exit stat 0
 Cleaning up...
 Killing kid2
 Starting process "kid2" (generation 2)
 file converter command: a2ps -1 --medium=Letterdj --center-title=nk@entw-pr2.demig.intra -o -
 Starting process "fileconverter" (generation 2)
 kid2: writing alreadyread
 kid2: Then read the rest from standard input
 kid2: Close out and stdin
 kid2 finished
 kid2: Close out and stdin
 kid2 finished
 [stdin (unformatiert): 0 Seiten auf 0 Blättern]
 [Insgesamt: 0 Seiten auf 0 Blättern] auf die Standardausgabe geschickt
 [stdin (unformatiert): 0 Seiten auf 0 Blättern]
 fileconverter exited with status 0
 [Insgesamt: 0 Seiten auf 0 Blättern] auf die Standardausgabe geschickt
 kid2 exited with status 0
 kid1 finished
 [stdin (unformatiert): 0 Seiten auf 0 Blättern]
 [Insgesamt: 0 Seiten auf 0 Blättern] auf die Standardausgabe geschickt
 fileconverter exited with status 0
 kid2 exited with status 0
 kid1 finished
 fileconverter exited with status 0
 kid2 exited with status 0
 kid1 finished
 [stdin (unformatiert): 1 Seite auf einem Blatt]
 [Insgesamt: 1 Seite auf einem Blatt] auf die Standardausgabe geschickt
 [2 lines wrapped]
 [stdin (unformatiert): 0 Seiten auf 0 Blättern]
 [Insgesamt: 0 Seiten auf 0 Blättern] auf die Standardausgabe geschickt
 fileconverter exited with status 0
 kid2 exited with status 0
 kid1 finished
 Killing fileconverter
 Killing kid1
 Killing kid1
 Killing kid1
 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 
 3. "foomatic-rip --ppd ppdfile -v inputfile </dev/null"
 Works.
 
 4. "foomatic-rip --ppd ppdfile -v /dev/null <inputfile"
 Works too.



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