Re: LPRng: Problems using enscript

2002-02-04 Thread Johan Bengtsson

On Sat, 2 Feb 2002, Patrick Powell wrote:

  From [EMAIL PROTECTED] Wed Jan 16 02:32:39 2002
  Date: Wed, 16 Jan 2002 10:29:43 +0100 (MET)
  From: Johan Bengtsson [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: LPRng: Problems using enscript
 
  Hi,
 
  WORKS:
 
  enscript_options= -o-  
  enscript_converter= /opt/pd/libexec/filters/wrapper /opt/gnu/bin/enscript 
\%s{enscript_options}   
  text_converter= \%s{enscript_converter}
 
  DOESN'T WORK:
 
  enscript_options= --header='$n %W Page $% of $=' -o-
  enscript_converter= /opt/pd/libexec/filters/wrapper /opt/gnu/bin/enscript 
\%s{enscript_options}
  text_converter= \%s{enscript_converter}
 
 
 The 'enscript_options' are being run through a Printf-like conversion
 process. You need to escape them by using %%.  Try:
 
  enscript_options= --header='$n %%W Page $%% of $=' -o-

I gave up on enscript and tried a2ps instead. Same problems, but it
finally worked when I enclosed the whole flag in ticks like below:

a2ps_options=  -q -B -1 -M \%M{papersize} '--left-footer=Jobsize: \%s{b}'

Best regards,
Johan Bengtsson

-- 
http://www.dd.chalmers.se/~elijah/



-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



LPRng: Problems using enscript

2002-01-16 Thread Johan Bengtsson

Hi,

WORKS:

enscript_options= -o-  
enscript_converter= /opt/pd/libexec/filters/wrapper /opt/gnu/bin/enscript 
\%s{enscript_options}   
text_converter= \%s{enscript_converter}

DOESN'T WORK:

enscript_options= --header='$n %W Page $% of $=' -o-
enscript_converter= /opt/pd/libexec/filters/wrapper /opt/gnu/bin/enscript 
\%s{enscript_options}
text_converter= \%s{enscript_converter}

...and here's what happens:

2002-01-16-10:17:14.488 gollum [5843] lpq
eonwe: Read_status_info: last_line 60, header ' Filter_status', checking
[164] ' Filter_status: started CONVERTER- 'wrapper' at 10:16:10.784'
2002-01-16-10:17:14.488 gollum [5843] lpq
eonwe: Read_status_info: last_line 60, header ' Filter_status', checking
[165] ' Filter_status: 'CONVERTER' error msg 'enscript: couldn't open
input file %W: No such file or directory' at 10:16:10.785'
2002-01-16-10:17:14.488 gollum [5843] lpq
eonwe: Read_status_info: last_line 60, header ' Filter_status', checking
[166] ' Filter_status: 'CONVERTER' error msg 'enscript: couldn't open
input file Page: No such file or directory' at 10:16:10.785'
2002-01-16-10:17:14.488 gollum [5843] lpq
eonwe: Read_status_info: last_line 60, header ' Filter_status', checking
[167] ' Filter_status: 'CONVERTER' error msg 'enscript: couldn't open
input file $%: No such file or directory' at 10:16:10.785'
2002-01-16-10:17:14.488 gollum [5843] lpq
eonwe: Read_status_info: last_line 60, header ' Filter_status', checking
[168] ' Filter_status: 'CONVERTER' error msg 'enscript: couldn't open
input file of: No such file or directory' at 10:16:10.786'
2002-01-16-10:17:14.489 gollum [5843] lpq
eonwe: Read_status_info: last_line 60, header ' Filter_status', checking
[169] ' Filter_status: 'CONVERTER' error msg 'enscript: couldn't open
input file $=': No such file or directory' at 10:16:10.786'
2002-01-16-10:17:14.489 gollum [5843] lpq
eonwe: Read_status_info: last_line 60, header ' Filter_status', checking
[170] ' Filter_status: 'CONVERTER' error msg 'no output generated' at
10:16:10.786'
2002-01-16-10:17:14.489 gollum [5843] lpq
eonwe: Read_status_info: last_line 60, header ' Filter_status', checking
[171] ' Filter_status: converter done, output 0 bytes at 10:16:10.789'
2002-01-16-10:17:14.489 gollum [5843] lpq
eonwe: Read_status_info: last_line 60, header ' Filter_status', checking
[172] ' Filter_status: zero length conversion output at 10:16:10.789'
2002-01-16-10:17:14.489 gollum [5843] lpq
eonwe: Read_status_info: last_line 60, header ' Filter_status', checking
[173] ' Filter_status: transferring 0 bytes at 10:16:10.792'
2002-01-16-10:17:14.490 gollum [5843] lpq
eonwe: Read_status_info: last_line 60, header ' Filter_status', checking
[174] ' Filter_status: zero length job file at 10:16:10.792'

Is it my fault or a bug?

Best regards,
Johan Bengtsson
-- 
http://www.dd.chalmers.se/~elijah/



-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-