Dear All,

I have been thinking about writing a very basic, bodgey sort of filter (in 
perl probably) to tweak postscript files going to a Canon CLC1100 (colour).
(Canon don't officially support linux, naturally.)

I wrote a VERY basic thing (perl equiv. of `cat -`) as a first step, and was 
absolutely dumb-founded to find that what came out the other end was the 
*log* *file* for the job, rather than the job itself!!!  I am completely 
confused.  Can anyone explain to me how or why this happened??

Here's my set-up:

printcap :-

prcol
    :cm=Canon Colour - CLC1100/PS-NX600
    :lp=hold@prcolour
    :sd=/var/spool/lpd/prcol
    :rw:sh:af=log:ar:lf=log:ps=status:mx#0:fx=flpv
    :create_files:max_log_file_size#0
    :if=/usr/local/libexec/filters/tst

The printer has two main queues: 'hold' and 'print'.  'hold' saves paper.  

/usr/local/libexec/filters/tst :-

#! /usr/bin/perl

# This should be equiv to `tee /tmp/log`
open (LL,">/tmp/filt_log");
while (<>) {
print LL $_;
    print;
}
close (LL);


Thanks for any help
Glen

-- 
Glen Davison                    [EMAIL PROTECTED]
Computer System Administrator   phone: +61 2 9385 7018
Maths, UNSW                     fax:   +61 2 9385 7192

-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------

Reply via email to