Michael Loßin on Wed, 16 Jan 2002 13:54:15 +0100 (CET)(envelope-from owner-apsfilter-help@apsfilter.org)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: 4.4R: if: doesn't get started when getting remote print job


On 16-Jan-02 Christian Ullrich wrote:
> * Andreas Klemm schrieb am Mittwoch, 2002-01-16:
> 
>> Another idea ... additionally.
>> use set -x in apsfilter shellscript and see in the printers logfile,
>> if apsfilter gets called an how, to make sure what happens or not
>> ...
> 
> I did that. As I'm currently some 30 km away from the printer, I 
> can't see what it produced, but now I know at least that apsfilter
> was indeed called. In the directory /var/spool/lpd/ascii, two files
> have been created: "lpq" and "lpq.0". The first one contains only:
> 
> 4=filenames=lpq.0,prstatus=0x3c4485ce,queue_status_file=0x3c455d0d,
> 
> (including that comma at the end of the previous line).
> 
> The second is about 6 KiB and starts thus:
> 
> Printer: ascii@ser1 'PS;r=600x600;q=medium;c=gray;p=a4;m=ascii'
>  Queue: no printable jobs in queue
>  Status: IF filter 'apsfilter' filter msg - 'J(STDIN)' at
> 11:59:23.292
>  Status: IF filter 'apsfilter' filter msg - 'Pchris' at 11:59:23.292
>  Status: IF filter 'apsfilter' filter msg - 'Qascii' at 11:59:23.292
>  Status: IF filter 'apsfilter' filter msg - 'N(STDIN)' at
> 11:59:23.292
>  Status: IF filter 'apsfilter' filter msg -
> 'ldfA671christian.chrullrich.de' at
> 11:59:23.292
>  Status: IF filter 'apsfilter' filter msg -
> 'UdfA671christian.chrullrich.de' at
> 11:59:23.292
>  Status: IF filter 'apsfilter' filter msg - '' ']'' at 11:59:23.292
>  Status: IF filter 'apsfilter' filter msg - '+ '[' '(STDIN)' = stdin
> -o '(STDIN)
> ' = '(stdin)' -o '(STDIN)' = '(STDIN)' ']'' at 11:59:23.293
>  Status: IF filter 'apsfilter' filter msg - '+ unset JOB' at
> 11:59:23.293
>  Status: IF filter 'apsfilter' filter msg - '+ '[' christian ']'' at
> 11:59:23.29
> 4
> 
> More data on request. 

Are you sure that output is not from some printing attempt
before?

Please perform the following steps:
  - add "filter_stderr_to_status_file" to /etc/lpd.conf
    and restart LPRng
  - remove (or clear) "/var/spool/lpd/ascii/status" and
    "/var/spool/lpd/ascii/status.ascii"
  - print again (with "set -x" in apsfilter)
  - post those two status files on this list


I'm really confused... apsfilter seems to be called, but the
output (staircased text) looks like it's bypassed.


Michael