Re: LPRng: Datafile and incoming_control_filter
Hi Stefan, I'm not sure but I think the control file is read from and the output written to is taken as the 'transformed' controlfile (?) best regards ~christoph -- /* Christoph Beyer | Office: Building 2b / 23 *\ * DESY|Phone: 040-8998-2317* * - IT - | Fax: 040-8998-4060* \* 22603 Hamburg | http://www.desy.de */ On 4 Sep 2003, Gruber Stefan wrote: > Hi! > > Hmm, well now I've successfully build a control_filter, not with perl > but with sh script. I thought I could remodel given -Z options and write > via "echo bblabla >> $controlfile". Everythings going fine but of > course: my controlfile will be ignored, lprng makes a new controlfile > and my work was for nothing. > > I've read the cookbook again and again but I can't make it out how to > rewrite the controlfile. > > Okay, a single question: how can I rewrite the controlfile via > SHELLSCRIPT-Filter?? > > Here's my printcap: > stg-test:\ >:rm=[IPADDRESS]:\ >:rp=mp:\ >:mx#0:\ >:filter=/usr/lib/filters/lpf:\ >:filter=/usr/libexec/filters/ifhp:\ >:ifhp=model=pcl >:control_filter= -$ /usr/lib/filters/remake_opts.sh $-k $-d $A $C > $t $h $J $n $P $Z :\ >:sd=/usr/spool/lpd/stg-test:\ >:force_localhost:\ >:sh: > > > Thanx in advance > stg > > > Am Die, 2003-09-02 um 19.45 schrieb [EMAIL PROTECTED]: > > Hi Stefan, > > > > the datafile is in the spool directory (which is defined in the 'printcap' > > or globally in the 'lpd.conf' file). See the manual for the > > incoming_control_filter option or read it online: > > > > http://www.lprng.com/LPRng-HOWTO/LPRng-HOWTO.html#INCOMINGCONTROLFILTER > > > > best regards > > ~christoph > > > > > # > This e-mail message has been scanned for Viruses and Content > by MailMarshal > For more information please visit www.marshalsoftware.com > # > > - > 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| subscribe lprng-digest [EMAIL PROTECTED] > unsubscribe LIST | unsubscribe lprng [EMAIL PROTECTED] > > If you have major problems, send email to [EMAIL PROTECTED] with the word > LPRNGLIST in the SUBJECT line. > - > - 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| subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
Re: LPRng: Datafile and incoming_control_filter
Hi! Hmm, well now I've successfully build a control_filter, not with perl but with sh script. I thought I could remodel given -Z options and write via "echo bblabla >> $controlfile". Everythings going fine but of course: my controlfile will be ignored, lprng makes a new controlfile and my work was for nothing. I've read the cookbook again and again but I can't make it out how to rewrite the controlfile. Okay, a single question: how can I rewrite the controlfile via SHELLSCRIPT-Filter?? Here's my printcap: stg-test:\ :rm=[IPADDRESS]:\ :rp=mp:\ :mx#0:\ :filter=/usr/lib/filters/lpf:\ :filter=/usr/libexec/filters/ifhp:\ :ifhp=model=pcl :control_filter= -$ /usr/lib/filters/remake_opts.sh $-k $-d $A $C $t $h $J $n $P $Z :\ :sd=/usr/spool/lpd/stg-test:\ :force_localhost:\ :sh: Thanx in advance stg Am Die, 2003-09-02 um 19.45 schrieb [EMAIL PROTECTED]: > Hi Stefan, > > the datafile is in the spool directory (which is defined in the 'printcap' > or globally in the 'lpd.conf' file). See the manual for the > incoming_control_filter option or read it online: > > http://www.lprng.com/LPRng-HOWTO/LPRng-HOWTO.html#INCOMINGCONTROLFILTER > > best regards > ~christoph > # This e-mail message has been scanned for Viruses and Content by MailMarshal For more information please visit www.marshalsoftware.com # - 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| subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
Re: LPRng: Datafile and incoming_control_filter
Hi Stefan, the datafile is in the spool directory (which is defined in the 'printcap' or globally in the 'lpd.conf' file). See the manual for the incoming_control_filter option or read it online: http://www.lprng.com/LPRng-HOWTO/LPRng-HOWTO.html#INCOMINGCONTROLFILTER best regards ~christoph -- /* Christoph Beyer | Office: Building 2b / 23 *\ * DESY|Phone: 040-8998-2317* * - IT - | Fax: 040-8998-4060* \* 22603 Hamburg | http://www.desy.de */ On 2 Sep 2003, Gruber Stefan wrote: > Hi everybody! > > Got a little question: how can i read the datafile produced by lprng? > I've tried every $Variable vom 0-99 and A-Z a-z, I cannot get the > information where my datafile is placed (Path/Name). In another posting > here I saw that someone wrote to the controlfile in an > incoming_control_filter but I couldn't find that routine. > > Thx a lot > stg > > > # > This e-mail message has been scanned for Viruses and Content > by MailMarshal > For more information please visit www.marshalsoftware.com > # > > - > 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| subscribe lprng-digest [EMAIL PROTECTED] > unsubscribe LIST | unsubscribe lprng [EMAIL PROTECTED] > > If you have major problems, send email to [EMAIL PROTECTED] with the word > LPRNGLIST in the SUBJECT line. > - > - 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| subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -